init
This commit is contained in:
		
							
								
								
									
										22
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
FROM alpine:3.17.0
 | 
			
		||||
RUN apk add --no-cache curl libqrencode
 | 
			
		||||
RUN tag="$(curl -sSo /dev/null -w '%{redirect_url}' \
 | 
			
		||||
    https://github.com/Snawoot/dumbproxy/releases/latest | \
 | 
			
		||||
    cut -d '/' -f 8)"; \
 | 
			
		||||
    curl -sSL -o /usr/bin/dumbproxy \
 | 
			
		||||
        https://github.com/Snawoot/dumbproxy/releases/download/$tag/dumbproxy.linux-amd64
 | 
			
		||||
COPY entrypoint.sh /usr/local/bin/docker-entrypoint.sh
 | 
			
		||||
RUN chmod +x /usr/bin/dumbproxy /usr/local/bin/docker-entrypoint.sh
 | 
			
		||||
 | 
			
		||||
ENV ADDRESS="${ADDRESS:-:8080}"
 | 
			
		||||
ENV AUTH=
 | 
			
		||||
ENV USERNAME=
 | 
			
		||||
ENV PASSWORD=
 | 
			
		||||
ENV HIDDEN_DOMAIN=
 | 
			
		||||
ENV OPTIONS=
 | 
			
		||||
 | 
			
		||||
USER nobody
 | 
			
		||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
 | 
			
		||||
EXPOSE 8080
 | 
			
		||||
STOPSIGNAL SIGINT
 | 
			
		||||
CMD ["/usr/bin/dumbproxy"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user