This commit is contained in:
ge
2022-12-27 21:57:50 +03:00
commit 40347bbf5a
3 changed files with 78 additions and 0 deletions

22
Dockerfile Normal file
View 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"]