Skip to content

Commit

Permalink
修改Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Aug 1, 2024
1 parent dbe0ea7 commit 5007417
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 @@ -11,8 +11,9 @@ WORKDIR /app
COPY backend/go.mod .
COPY backend/go.sum .
RUN go mod download
RUN go mod tidy
COPY --from=front /app/.output/public /app/public
COPY backend/* .
COPY backend/. .
RUN apk update --no-cache && apk add --no-cache tzdata
RUN go build -tags prod -ldflags="-s -w" -o /app/moments

Expand Down

0 comments on commit 5007417

Please sign in to comment.