Update Dockerfile versions.

This commit is contained in:
Gucheng Wang 2021-12-12 22:28:14 +08:00
parent 8d8c662e58
commit a555d27dd2

View File

@ -1,10 +1,10 @@
FROM golang:1.17 AS BACK
FROM golang:1.17.5 AS BACK
WORKDIR /go/src/casdoor
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOPROXY=https://goproxy.cn,direct go build -ldflags="-w -s" -o server . \
&& apt update && apt install wait-for-it && chmod +x /usr/bin/wait-for-it
FROM node:14.17.6 AS FRONT
FROM node:16.13.0 AS FRONT
WORKDIR /web
COPY ./web .
RUN yarn config set registry https://registry.npm.taobao.org