Skip to content

Commit

Permalink
Use port env in dockerfile entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
fdocr committed Sep 30, 2023
1 parent 7466903 commit bf6e024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN crystal build --static --release ./src/app.cr
FROM alpine:latest
WORKDIR /
COPY --from=builder /opt/app .
ENTRYPOINT ["./app"]
ENTRYPOINT ["./app -p $PORT"]

0 comments on commit bf6e024

Please sign in to comment.