Skip to content

Commit d7a3209

Browse files
committed
explicitly adds bin/src dir in image and validate seed_db.rs file existence in Dockerfile.
1 parent bf71921 commit d7a3209

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,20 @@ COPY ./entity_api/Cargo.toml ./entity_api/Cargo.toml
1717
COPY ./migration/Cargo.toml ./migration/Cargo.toml
1818
COPY ./service/Cargo.toml ./service/Cargo.toml
1919
COPY ./web/Cargo.toml ./web/Cargo.toml
20+
21+
# Make sure the src/bin directory exists before copying to it
22+
RUN mkdir -p src/bin
23+
24+
# Copy everything else
2025
COPY . .
21-
COPY src/bin/seed_db.rs ./src/bin/seed_db.rs
26+
27+
# Verifying file structure and src files existence
28+
RUN echo "Checking file structure:" && \
29+
ls -la && \
30+
echo "Checking src/bin directory:" && \
31+
ls -la src/bin && \
32+
echo "Checking if seed_db.rs exists:" && \
33+
test -f src/bin/seed_db.rs && echo "File exists!" || echo "File does not exist!"
2234

2335
# Build release binaries for the current platform only
2436
RUN cargo build --release --workspace

0 commit comments

Comments
 (0)