Open bodom0015 opened 1 month ago
Name | Link |
---|---|
Latest commit | 442e54c91277c442762c87ded997954b53ebe46c |
Latest deploy log | https://app.netlify.com/sites/cheerful-treacle-913a24/deploys/6734d7298cc357000882642c |
Deploy Preview | https://deploy-preview-319--cheerful-treacle-913a24.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Problem
For consistency in deployment, we could create a Docker image for the project homepage
Approach
build
) - uses a NodeJS image to compile app source coderuntime
) - copies compiled artifacts into an alpine-based NGINX instance, served on port 80docker compose up -d --build
can be used to build + run the app in one stepHow to Test
docker compose build
docker build -t herop/sdoh-homepage .
docker compose up -d
docker run -it -p 8080:80 --name sdoh-homepage herop/sdoh-homepage
docker compose down
docker rm -f sdoh-homepage