From 978ccd96dffb74cf10373109b7b7ea9212723687 Mon Sep 17 00:00:00 2001 From: darius Date: Tue, 25 Feb 2025 21:52:04 +0100 Subject: [PATCH] improved env in deploy --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1def343..bddae13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,6 @@ WORKDIR . # Copy the current directory contents into the container at /app COPY . . -COPY .env .env - # Download and install any required dependencies RUN go mod download @@ -21,6 +19,8 @@ FROM gcr.io/distroless/base-debian12 COPY --from=build /go/portfolio . +COPY .env .env + ADD ./web/assets ./web/assets # Expose port 8080 for incoming traffic