Skip to content

Commit

Permalink
docker file fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SwarnenduG07 committed Dec 29, 2024
1 parent 72d740a commit 22a5b39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions file-share-rust-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Add command
CMD ["/app/secureshare_backend"]

0 comments on commit 22a5b39

Please sign in to comment.