@@ -17,23 +17,12 @@ COPY ./entity_api/Cargo.toml ./entity_api/Cargo.toml
1717COPY ./migration/Cargo.toml ./migration/Cargo.toml
1818COPY ./service/Cargo.toml ./service/Cargo.toml
1919COPY ./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
2520COPY . .
2621
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!"
22+ RUN cargo build --release -p refactor_platform_rs -p migration
23+
24+ RUN echo "LIST OF CONTENTS" && ls -lahR /usr/src/app
3425
35- # Build release binaries for the current platform only
36- RUN cargo build --release --workspace
3726
3827# Stage 2: Minimal runtime image
3928FROM --platform=${BUILDPLATFORM} debian:bullseye-slim
@@ -48,7 +37,7 @@ WORKDIR /app
4837# Copy only the necessary release binaries
4938COPY --from=builder /usr/src/app/target/release/refactor_platform_rs .
5039COPY --from=builder /usr/src/app/target/release/migration .
51- COPY --from=builder /usr/src/app/target/release/seed_db .
40+ # COPY --from=builder /usr/src/app/target/release/seed_db .
5241
5342# Copy entrypoint script and make it executable
5443COPY entrypoint.sh /entrypoint.sh
0 commit comments