From e57f538c3406fe98fb6182afae3a9cf37c3ca937 Mon Sep 17 00:00:00 2001 From: Love98 <77888749+love98ooo@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:20:19 +0800 Subject: [PATCH] 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 --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7c6348..7e9a54d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . \