更新 Dockerfile
Docker Deploy / build-and-deploy (push) Successful in 2m10s
Details
Docker Deploy / build-and-deploy (push) Successful in 2m10s
Details
This commit is contained in:
parent
99b2d69dea
commit
205fd359ec
|
@ -1,9 +1,10 @@
|
|||
FROM golang:alpine as builder
|
||||
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/syschan/golang:alpine as builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN go generate && source ./bin/start/.env && go build -o ./bin/$appName -v .
|
||||
|
||||
FROM alpine:latest
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/syschan/alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/bin/ .
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk add bash && chmod +x ./start/script.sh
|
||||
|
|
Loading…
Reference in New Issue