diff --git a/Dockerfile b/Dockerfile index b0d9462..af8b3cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN apt-get update \ && useradd --system --gid app --create-home --home-dir /home/app app WORKDIR /app -COPY --from=builder /opt/venv /opt/venv +COPY --from=builder --chown=app:app /opt/venv /opt/venv COPY proxy ./proxy COPY README.md LICENSE ./ @@ -41,5 +41,5 @@ USER app EXPOSE 1443/tcp -ENTRYPOINT ["/usr/bin/tini", "--", "/bin/sh", "-lc", "set -eu; args=\"--host ${TG_WS_PROXY_HOST} --port ${TG_WS_PROXY_PORT}\"; for dc in ${TG_WS_PROXY_DC_IPS}; do args=\"$args --dc-ip $dc\"; done; exec python -u proxy/tg_ws_proxy.py $args \"$@\"", "--"] +ENTRYPOINT ["/usr/bin/tini", "--", "/bin/sh", "-lc", "set -eu; args=\"--host ${TG_WS_PROXY_HOST} --port ${TG_WS_PROXY_PORT}\"; for dc in ${TG_WS_PROXY_DC_IPS}; do args=\"$args --dc-ip $dc\"; done; exec /opt/venv/bin/python -u proxy/tg_ws_proxy.py $args \"$@\"", "--"] CMD []