13 lines
313 B
Docker
13 lines
313 B
Docker
|
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"]
|