Skip to content

Commit

Permalink
ci: dynamic HOST & PORT envvar, don't expose 3000/tcp by default
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloanan committed Jul 31, 2024
1 parent 6f59dfd commit 2c1287d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ FROM gcr.io/distroless/cc-debian12
COPY --from=build-bend /app/target/release/link-shortener /
COPY --from=build-client /app/client-out/ /client-out/

ENV HOST="0.0.0.0"
ENV PORT="3000"
VOLUME [ "/app/data/" ]
EXPOSE 3000/tcp
CMD ["./link-shortener"]

0 comments on commit 2c1287d

Please sign in to comment.