mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Use yarn in Dockerfile.
This commit is contained in:
parent
d62a5fd7de
commit
8cb96142db
@ -1,13 +1,14 @@
|
||||
FROM golang:1.16 AS BACK
|
||||
FROM golang:1.17 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.4 AS FRONT
|
||||
FROM node:14.17.6 AS FRONT
|
||||
WORKDIR /web
|
||||
COPY ./web .
|
||||
RUN npm install && npm run build
|
||||
RUN yarn config set registry https://registry.npm.taobao.org
|
||||
RUN yarn install && yarn run build
|
||||
|
||||
FROM alpine:latest
|
||||
LABEL MAINTAINER="https://casdoor.org/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user