Skip to content

Commit a32e47e

Browse files
committed
feat: upgrade Dockerfile versions to golang:1.21 and node:18
1 parent 903a219 commit a32e47e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
FROM golang:1.17 AS BACK
1+
FROM golang:1.21.13 AS BACK
22
WORKDIR /go/src/casnode
33
COPY . .
4-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOPROXY=https://goproxy.cn,direct go build -ldflags="-w -s" -o server . \
4+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server . \
55
&& apt update && apt install wait-for-it && chmod +x /usr/bin/wait-for-it
66

7-
FROM node:14.17.6 AS FRONT
7+
FROM node:18.19.0 AS FRONT
88
WORKDIR /web
99
COPY ./web .
10-
RUN yarn config set registry https://registry.npmmirror.com
11-
RUN yarn install && yarn run build
10+
RUN yarn install --frozen-lockfile --network-timeout 1000000 && NODE_OPTIONS="--max-old-space-size=4096" yarn run build
1211

1312
FROM alpine:latest
1413
RUN sed -i 's/https/http/' /etc/apk/repositories

0 commit comments

Comments
 (0)