Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
GarbhanK committed Feb 17, 2024
1 parent 3de419a commit 7e2f846
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# create binary from official golang image
FROM golang:1.21-bookworm as builder


# create and change to app dir
WORKDIR /app

Expand All @@ -23,9 +24,9 @@ RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -
# copy binary to prod image from builder stage
COPY --from=builder /app/gin-server /app/gin-server

# EXPOSE 80
EXPOSE 8080

ENV GIN_MODE="release"

# Run the web service on container startup
CMD ["/app/gin-server"]

0 comments on commit 7e2f846

Please sign in to comment.