fea: add Dockerfile

This commit is contained in:
lab 2021-12-25 02:30:17 +08:00
parent 7dfb33a471
commit b7255bf031

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM alpine:3.14 as builder
RUN apk --no-cache add ca-certificates
FROM scratch as production
ENV TZ="Asia/Shanghai"
COPY ./app /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
CMD ["/app"]