Skip to content

Commit

Permalink
feat(Dockerfile): remove npmmirror and update base version
Browse files Browse the repository at this point in the history
1. remove npmmirror
2. synchronize the node and golang version to the version used by casdoor
  • Loading branch information
love98ooo committed Sep 17, 2024
1 parent 7aa1479 commit 8044120
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:16.18.0 AS FRONT
FROM node:18.19.0 AS FRONT
WORKDIR /web
COPY ./web .
RUN yarn config set registry https://registry.npmmirror.com
RUN yarn install --frozen-lockfile --network-timeout 1000000 && yarn run build

FROM golang:1.19.9 AS BACK
FROM golang:1.20.12 AS BACK
WORKDIR /go/src/caswaf
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server . \
Expand Down

0 comments on commit 8044120

Please sign in to comment.