更新 Dockerfile
Docker Deploy / build-and-deploy (push) Successful in 1m39s
Details
Docker Deploy / build-and-deploy (push) Successful in 1m39s
Details
This commit is contained in:
parent
205fd359ec
commit
061dc289c8
|
@ -1,10 +1,10 @@
|
|||
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/syschan/golang:alpine as builder
|
||||
ARG registry=registry.cn-hangzhou.aliyuncs.com/syschan
|
||||
FROM ${registry}/golang:alpine as builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN go generate && source ./bin/start/.env && go build -o ./bin/$appName -v .
|
||||
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/syschan/alpine:latest
|
||||
FROM ${registry}/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