23 lines
674 B
Docker
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"]
|