diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b0d9965 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file