Add Dockerfiles to Containerize Frontend and Backend of the Project #55
+67
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.