git init && first commit
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
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"]
|
Reference in New Issue
Block a user