Skip to content

Commit e57f538

Browse files
authored
feat(Dockerfile): remove npmmirror and update base version (#76)
1. remove npmmirror 2. synchronize the node and golang version to the version used by casdoor
1 parent 7aa1479 commit e57f538

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM node:16.18.0 AS FRONT
1+
FROM node:18.19.0 AS FRONT
22
WORKDIR /web
33
COPY ./web .
4-
RUN yarn config set registry https://registry.npmmirror.com
54
RUN yarn install --frozen-lockfile --network-timeout 1000000 && yarn run build
65

7-
FROM golang:1.19.9 AS BACK
6+
FROM golang:1.20.12 AS BACK
87
WORKDIR /go/src/caswaf
98
COPY . .
109
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server . \

0 commit comments

Comments
 (0)