Skip to content

Commit

Permalink
feat(Dockerfile): change EXPOSE port to 8080 for both development and…
Browse files Browse the repository at this point in the history
… production environments
  • Loading branch information
eser committed Aug 18, 2024
1 parent 47d141c commit 740ebe2
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 @@ -51,6 +51,7 @@ COPY . .

FROM builder-base AS runner-development

EXPOSE 8080
ENTRYPOINT ["go", "run", "./cmd/service-cli/"]

# ------------------------
Expand All @@ -74,5 +75,5 @@ COPY --from=builder-production --chown=nonroot:nonroot /app/service-cli /
# Run as a non-root user
USER nonroot

EXPOSE 80
EXPOSE 8080
ENTRYPOINT ["/service-cli"]

0 comments on commit 740ebe2

Please sign in to comment.