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 825ed56 commit 908a4a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN npm install
COPY . .
RUN npm run generate

FROM golang:alpine as backend
FROM golang:1.22 as backend
ENV CGO_ENABLED 1
RUN apk add build-base
WORKDIR /app
Expand All @@ -15,6 +15,8 @@ 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 908a4a5

Please sign in to comment.