mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-07 04:24:15 +08:00
Updated Dockerfile.build
This commit is contained in:
parent
76c5aaa983
commit
092754b836
1 changed files with 2 additions and 3 deletions
|
@ -46,7 +46,6 @@ RUN cargo chef prepare --recipe-path recipe.json
|
|||
FROM base AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=planner /app/recipe.json recipe.json
|
||||
COPY resources/ resources/
|
||||
ARG TARGET
|
||||
ARG BUILD_ENV
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
@ -85,6 +84,8 @@ RUN \
|
|||
mv /fdb/usr/lib/libfdb_c.so /usr/lib && \
|
||||
rm -rf fdb-client.deb /fdb; \
|
||||
fi
|
||||
# Copy the source code
|
||||
COPY . .
|
||||
# Cargo-chef Cache layer
|
||||
RUN \
|
||||
--mount=type=secret,id=ACTIONS_RESULTS_URL,env=ACTIONS_RESULTS_URL \
|
||||
|
@ -103,8 +104,6 @@ RUN \
|
|||
source /env-cargo && \
|
||||
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart --no-default-features --features "sqlite postgres mysql rocks elastic s3 redis azure nats enterprise" && \
|
||||
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart-cli
|
||||
# Copy the source code
|
||||
COPY . .
|
||||
ENV RUSTC_WRAPPER="sccache" \
|
||||
SCCACHE_GHA_ENABLED=true
|
||||
# Build FoundationDB version
|
||||
|
|
Loading…
Add table
Reference in a new issue