...
|
...
|
@@ -6,6 +6,8 @@ ARG PROJECT=core |
|
|
WORKDIR /build
|
|
|
COPY . .
|
|
|
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
|
RUN apk update --no-cache && apk add --no-cache tzdata
|
|
|
RUN go env -w GO111MODULE=on \
|
|
|
&& go env -w GOPROXY=https://goproxy.cn,direct \
|
|
|
&& go env -w CGO_ENABLED=0 \
|
...
|
...
|
@@ -28,7 +30,9 @@ LABEL org.opencontainers.image.authors=${AUTHOR} |
|
|
WORKDIR /app
|
|
|
ENV PROJECT=${PROJECT}
|
|
|
ENV CONFIG_FILE=${CONFIG_FILE}
|
|
|
ENV TZ Asia/Shanghai
|
|
|
|
|
|
COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai
|
|
|
COPY --from=builder /build/api/${PROJECT} ./
|
|
|
COPY --from=builder /build/cmd/discuss/api/etc/${CONFIG_FILE} ./etc/
|
|
|
|
...
|
...
|
|