This repository has been archived on 2024-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
dumbproxy/Dockerfile
2022-12-27 21:57:50 +03:00

23 lines
674 B
Docker

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"]