Skip to content

Commit ce4902b

Browse files
committed
modifies Dockerfile to not build seed_db
1 parent d7a3209 commit ce4902b

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Dockerfile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,12 @@ 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
2520
COPY . .
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
3928
FROM --platform=${BUILDPLATFORM} debian:bullseye-slim
@@ -48,7 +37,7 @@ WORKDIR /app
4837
# Copy only the necessary release binaries
4938
COPY --from=builder /usr/src/app/target/release/refactor_platform_rs .
5039
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 .
5241

5342
# Copy entrypoint script and make it executable
5443
COPY entrypoint.sh /entrypoint.sh

0 commit comments

Comments
 (0)