diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..534f3d9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.env.example \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b518a60..8275181 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 FROM rust:alpine AS chef -RUN apk add --no-cache musl-dev lld g++ make perl openssl-dev openssl-libs-static protobuf-dev +RUN apk add --no-cache musl-dev lld g++ make perl openssl-dev openssl-libs-static protobuf-dev ca-certificates RUN cargo install cargo-chef WORKDIR /app @@ -27,6 +27,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ FROM scratch AS final WORKDIR / +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /app/dist/account /account COPY --from=builder /app/res /res ENTRYPOINT ["/account"] \ No newline at end of file