Skip to content

Commit c733acf

Browse files
committed
Include resources directory in Docker builds (closes #1725 closes #1727)
1 parent 6700516 commit c733acf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Allow what is needed
55
!crates
66
!tests
7-
!resources/docker/entrypoint.sh
7+
!resources
88

99
!Cargo.lock
1010
!Cargo.toml

Dockerfile.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ RUN \
8484
mv /fdb/usr/lib/libfdb_c.so /usr/lib && \
8585
rm -rf fdb-client.deb /fdb; \
8686
fi
87-
# Copy the source code
88-
COPY . .
8987
# Cargo-chef Cache layer
9088
RUN \
9189
--mount=type=secret,id=ACTIONS_RESULTS_URL,env=ACTIONS_RESULTS_URL \
@@ -104,6 +102,8 @@ RUN \
104102
source /env-cargo && \
105103
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" && \
106104
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart-cli
105+
# Copy the source code
106+
COPY . .
107107
ENV RUSTC_WRAPPER="sccache" \
108108
SCCACHE_GHA_ENABLED=true
109109
# Build FoundationDB version

0 commit comments

Comments
 (0)