mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
fix: go proxy of dockerfile (#283)
Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
FROM golang:1.16 AS BACK
|
FROM golang:1.16 AS BACK
|
||||||
WORKDIR /go/src/casdoor
|
WORKDIR /go/src/casdoor
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server . \
|
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
|
&& 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.4 AS FRONT
|
||||||
|
Reference in New Issue
Block a user