13 lines
313 B
Docker
Raw Normal View History

2024-05-14 12:17:14 +08:00
FROM alpine:latest as builder
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk --no-cache add ca-certificates
FROM scratch as production
ENV TZ="Asia/Shanghai"
COPY ./build/app /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
CMD ["/app"]