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 4252d9b commit 5346e93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:22.2.0-alpine as front
WORKDIR /app
COPY front/package*.json ./
RUN npm install
COPY . .
COPY front/. .
RUN npm run generate

FROM golang:1.22.5-alpine as backend
Expand All @@ -15,8 +15,6 @@ RUN go mod download
RUN go mod tidy
COPY backend/. .
COPY --from=front /app/.output/public /app/public
RUN ls -l /app/
RUN ls -l /app/public
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 5346e93

Please sign in to comment.