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

Dockerized App for development and production #84

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

Conversation

ppastene
Copy link

This Pull Request is made for the issue #75 in which the app is dockerized using Docker and being ready to use either for development (using npm run start) and production (using npm run build and later being deployed into a nginx web server). Also I've modified the README to explain the commands used for building and running and also I've made a Makefile to make the execution kinda easy

The only problem with this is that Docker can insert environment variables into the containers but using the production container is not possible to insert them in runtime because the npm run build command needs the variables for building the static files, so you cannot pass new variables after building and to make it work, the .env file must be present into the container for building. There's a solution to pass variables after building during runtime but I haven't implemented here, maybe in a future Pull Request

Maybe there are some fixes or new feature that other people can implement like a code to deploy directly into AWS or GCP, or integrate the container into Kubernetes or Docker Swarm

@netlify
Copy link

netlify bot commented Oct 23, 2022

Deploy Preview for effulgent-brioche-795ac4 ready!

Name Link
🔨 Latest commit a5ccb43
🔍 Latest deploy log https://app.netlify.com/sites/effulgent-brioche-795ac4/deploys/63549e5e2e6cd700083bcf19
😎 Deploy Preview https://deploy-preview-84--effulgent-brioche-795ac4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ppastene ppastene changed the title Feature/docker Dockerized App for development and production Oct 23, 2022
@HridoyHazard
Copy link
Owner

fix the conflict

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