更新 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 @@
|
||||||
|
ARG registry=registry.cn-hangzhou.aliyuncs.com/syschan
|
||||||
FROM registry.cn-hangzhou.aliyuncs.com/syschan/golang:alpine as builder
|
FROM ${registry}/golang:alpine as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go generate && source ./bin/start/.env && go build -o ./bin/$appName -v .
|
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
|
WORKDIR /app
|
||||||
COPY --from=builder /app/bin/ .
|
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
|
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