Skip to content

Conversation

@devanmolx
Copy link

This PR introduces Dockerfiles for both the frontend (Vite-based) and backend (Go-based) of the project, enabling containerization of the development environment. A .dockerignore file has also been added to optimize the Docker image size by excluding unnecessary files. Additionally, the documentation has been updated to reflect the new setup steps.

Fixes #54

Changes Introduced:

Frontend Dockerfile:

Added a Dockerfile to containerize the frontend, exposing port 5173 for local development with Vite.
Included necessary dependencies and environment setup to run the frontend within the container.

Backend Dockerfile:

Added a Dockerfile to containerize the backend, exposing port 1313 for the Go server.
Handled graceful shutdown of the backend to ensure proper termination when the container stops.

.dockerignore Files:

Added .dockerignore files to both frontend and backend to reduce Docker image size by ignoring files like node_modules, logs, and temporary files.

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.

Containerizing the App with Docker for Streamlined Development

1 participant