Skip to content

Commit

Permalink
Allow run config to be set in container via ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmcconnell committed Mar 25, 2024
1 parent bc0de88 commit 4269c8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ RUN make
FROM ubuntu as base
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /app/bin/mproxy /usr/local/bin/
EXPOSE 80 443

CMD [ "mproxy", "run" ]
ENV HTTP_PORT=80
ENV HTTPS_PORT=443
ENV DEBUG=false

EXPOSE $HTTP_PORT $HTTPS_PORT

CMD mproxy run --http-port=${HTTP_PORT} --https-port=${HTTPS_PORT} --debug=${DEBUG}

0 comments on commit 4269c8e

Please sign in to comment.