Automated building and deployment process with Docker #2

Merged
sangelo merged 20 commits from docker into main 2024-04-03 12:10:51 +00:00
Showing only changes of commit 7e19be55b1 - Show all commits

View file

@ -16,9 +16,6 @@ just
# you can also run `just dev` # you can also run `just dev`
just dev just dev
# to build and preview a webpage, run `just preview`
just preview
``` ```
View a list of all possible `just` recipes with `just -l`. View a list of all possible `just` recipes with `just -l`.
@ -40,27 +37,40 @@ Once you've made your changes, you can create a Pull Request and I'll make sure
## Building ## Building
### Build locally
To create a production version of this website without docker: To create a production version of this website without docker:
```bash ```bash
# automatically build & preview
just preview
# or, manually build
yarn run build yarn run build
``` ```
You can then preview the production build locally with `yarn run preview --open`.
The files will be available in the repo, in the `build/` directory.
### Build with Docker
To build a docker container image with `just`: To build a docker container image with `just`:
```bash ```bash
# build and run container image with docker # build and run container image with docker, tag: latest
just build just build
# build with podman # build with podman
just build podman just build <tag> podman
# clean, build, and run container image with docker or podman # clean, build, and run container image with docker, tag: latest
just all just all
just all podman # clean, build, and run container image with podman, tag: dev
just all dev podman
``` ```
You can preview the production build with `yarn run preview`. You can preview the produced docker build with `just run [tag] [runner]`.
## License ## License