improved env in deploy
This commit is contained in:
parent
8d5128a750
commit
978ccd96df
@ -6,8 +6,6 @@ WORKDIR .
|
|||||||
# Copy the current directory contents into the container at /app
|
# Copy the current directory contents into the container at /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
COPY .env .env
|
|
||||||
|
|
||||||
# Download and install any required dependencies
|
# Download and install any required dependencies
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
@ -21,6 +19,8 @@ FROM gcr.io/distroless/base-debian12
|
|||||||
|
|
||||||
COPY --from=build /go/portfolio .
|
COPY --from=build /go/portfolio .
|
||||||
|
|
||||||
|
COPY .env .env
|
||||||
|
|
||||||
ADD ./web/assets ./web/assets
|
ADD ./web/assets ./web/assets
|
||||||
|
|
||||||
# Expose port 8080 for incoming traffic
|
# Expose port 8080 for incoming traffic
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user