Skip to content

Conversation

@mrchypark
Copy link

@mrchypark mrchypark commented Dec 5, 2025

Description

This PR adds comprehensive Docker support to the project, making it easier to build, deploy, and verify the application in containerized environments.

Changes

  • Dockerfile: Implemented a multi-stage build using cargo-chef for optimal caching and faster rebuilds.
  • Base image: rust:bookworm (build), debian:bookworm-slim (runtime).
  • Security: Runs as a non-root user (pgsqlite).
  • Healthcheck: Included for container orchestration.
  • Workflow: Added

.github/workflows/docker-build.yml

to automatically build the Docker image on push and PR.

  • Compose: Added docker-compose.yml for quick local testing and deployment.
  • Ignore: Added .dockerignore to keep the build context clean.

Verification

Built the image locally using docker build ..
Verified the build workflow structure.
cargo check --release passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant