From 22a5b3921f07915a37023eaeda3707c3a3ed018f Mon Sep 17 00:00:00 2001 From: sunny Date: Sun, 29 Dec 2024 21:36:19 +0530 Subject: [PATCH] docker file fixed --- file-share-rust-backend/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/file-share-rust-backend/Dockerfile b/file-share-rust-backend/Dockerfile index f86d187..d5b4d1a 100644 --- a/file-share-rust-backend/Dockerfile +++ b/file-share-rust-backend/Dockerfile @@ -25,13 +25,11 @@ RUN apt-get update && \ # Copy the built binary and required files from builder COPY --from=builder /usr/src/app/target/release/secureshare_backend /app/ -COPY --from=builder /usr/src/app/.env /app/ -COPY --from=builder /usr/src/app/migrations ./migrations -COPY --from=builder /usr/local/cargo/bin/sqlx /usr/local/bin/ # Switch to non-root user USER appuser EXPOSE 8000 -# Command is now specified in docker-compose.yml \ No newline at end of file +# Add command +CMD ["/app/secureshare_backend"] \ No newline at end of file