Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Docker Stack #75

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

burnoutprojects
Copy link

I update the development and production docker stack with security and minimalism in mind.

I'm open for advice and comments.

P.S.: Happy new year, happy 2024 🎉

* Dockerfile: Set of instructions for creating development and production image
* entrypoint.sh: This file override the default entrypoint of the image. Install npm dependencies and run npm script based of enviroment
* Add message for app running mode (ex. development, production)
* Add build script to production mode
* Add Builder step
* Add Development step
* Add Production step
* dev.compose.yaml - For development only use
* prod.compose.yaml - For production only use
In current structure of docker if not present, the app is not starting because missing dependencies
Copy link

socket-security bot commented Jan 1, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
tsx 4.7.0 eval, network, filesystem, shell, environment +27 224 MB hirokiosame

🚮 Removed packages: nodemon@3.0.2

package.json Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
prod.compose.yaml Outdated Show resolved Hide resolved
prod.compose.yaml Outdated Show resolved Hide resolved
dev.compose.yaml Outdated Show resolved Hide resolved
@burnoutprojects burnoutprojects marked this pull request as draft January 1, 2024 18:08
- Add .data and .dev-data in .gitignore file
- Add .data and .dev-data in .dockerignore file
- Re-add ts-node in dev dependencies
- Update the dev script to use ts-node with node --watch flag
- Add .dev-data folder as volume
- Remove docker volume
- Add .dev-data folder as volume
- Remove docker volume
- Uncomment ports
- Add docker:clean script
- Update docker-dev:start script
- Update docker-prod:start script
- Update docker-dev:build script
- Update docker-prod:build script
@burnoutprojects burnoutprojects marked this pull request as ready for review January 1, 2024 22:00
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.

2 participants