feat: Add Docker support for the application#3
Merged
Codegres-com merged 1 commit intomainfrom Sep 30, 2025
Merged
Conversation
This commit introduces comprehensive Docker support to streamline the development and deployment process. Key changes include: - A `Dockerfile` that containerizes the application using the efficient `node:20-alpine` base image. It sets up the working directory, installs dependencies, and configures the application to run on container start. - A `.dockerignore` file to exclude unnecessary files like `node_modules` and `.git` from the build context, resulting in a smaller and more secure image. - A `docker-compose.yml` file to simplify running the application. It defines the service, manages environment variables with sensible defaults, maps ports, and configures named volumes for `sessions` and `uploads` to ensure data persistence across container restarts. - The `README.md` has been updated with a new "Running with Docker" section, providing clear, step-by-step instructions for getting the application running with both Docker Compose (recommended) and manual Docker commands. The commands have been updated to use the modern `docker compose` syntax.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 commit introduces comprehensive Docker support to streamline the development and deployment process.
Key changes include:
Dockerfilethat containerizes the application using the efficientnode:20-alpinebase image. It sets up the working directory, installs dependencies, and configures the application to run on container start..dockerignorefile to exclude unnecessary files likenode_modulesand.gitfrom the build context, resulting in a smaller and more secure image.docker-compose.ymlfile to simplify running the application. It defines the service, manages environment variables with sensible defaults, maps ports, and configures named volumes forsessionsanduploadsto ensure data persistence across container restarts.README.mdhas been updated with a new "Running with Docker" section, providing clear, step-by-step instructions for getting the application running with both Docker Compose (recommended) and manual Docker commands. The commands have been updated to use the moderndocker composesyntax.