Skip to content

Commit

Permalink
Configure container to run as nobody and listen to default port 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
progamesigner committed Jan 31, 2020
1 parent 33d0ed6 commit 368e5e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ ARG BUILD_TARGET

ENV RUST_LOG=actix_web=info
ENV SERVER_LISTEN_ADDR=0.0.0.0
ENV SERVER_LISTEN_PORT=80
ENV SERVER_LISTEN_PORT=8080

USER nobody

COPY --from=builder /build/bin/$BUILD_TARGET /usr/local/bin/server

EXPOSE 80
EXPOSE 8080

ENTRYPOINT ["/usr/local/bin/server"]

0 comments on commit 368e5e3

Please sign in to comment.