Closed ricardobalk closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
website | 🛑 Canceled (Inspect) | Jan 29, 2023 at 5:48PM (UTC) |
Looks good to me. We need to fix Vercel so we can merge this PR.
I practically got rid of Vercel. Could use Vercel with a future version of my website when it's based on Nuxt 3, which would also use Vite instead of Webpack. However, I like having my own servers as that provides more privacy to users.
This PR contains an improved Docker set-up.
The following things have changed:
The Dockerfile now uses a multi-stage build, which makes it possible to stop the build at any stage. This is useful if you want to develop something in the container, but don't want to wait for the whole build process to finish.
It also makes it possible to use the
release-base
stage to build a production build without nginx. This is useful if you want to use a different web server or if you want to extract the static files to use them in another way, or if you want to use a different server for serving the static files.The resulting image is now based on Alpine Linux, which makes the image smaller. The image is now about 30 megabytes instead of 500 megabytes.
The README has been updated to reflect the changes.
A Docker Compose file has been added to make it easier to run the container. The
docker-compose.yml
has been symlinked todocker-compose.dev.yml
to make it easier to run the development container, by usingdocker-compose up
.