From 7e2f8469292b563c89993f6ca8625f74e5b74cd6 Mon Sep 17 00:00:00 2001 From: GarbhanK Date: Sat, 17 Feb 2024 00:54:13 +0000 Subject: [PATCH] update dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c27a3fb..16bea31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"] -