@@ -17,23 +17,12 @@ COPY ./entity_api/Cargo.toml ./entity_api/Cargo.toml
17
17
COPY ./migration/Cargo.toml ./migration/Cargo.toml
18
18
COPY ./service/Cargo.toml ./service/Cargo.toml
19
19
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
25
20
COPY . .
26
21
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
34
25
35
- # Build release binaries for the current platform only
36
- RUN cargo build --release --workspace
37
26
38
27
# Stage 2: Minimal runtime image
39
28
FROM --platform=${BUILDPLATFORM} debian:bullseye-slim
@@ -48,7 +37,7 @@ WORKDIR /app
48
37
# Copy only the necessary release binaries
49
38
COPY --from=builder /usr/src/app/target/release/refactor_platform_rs .
50
39
COPY --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 .
52
41
53
42
# Copy entrypoint script and make it executable
54
43
COPY entrypoint.sh /entrypoint.sh
0 commit comments