docker file setup

This commit is contained in:
2026-01-16 15:52:34 +11:00
parent 2fef051c2f
commit 77cc5273ac
6 changed files with 58 additions and 31 deletions

View File

@@ -35,9 +35,11 @@ pnpm run payload:migrate:create
Deploying the portfolio is done as a docker container. It can be built with the following command:
```bash
docker build -t liam-portfolio .
docker build --add-host=host.docker.internal:host-gateway --build-arg HOST_GATEWAY=host.docker.internal -t liam-portfolio .
```
NOTE: Ensure a .env exists with the correct environment variables, including the DATABASE_URL and PAYLOAD_SECRET.
### Running the Container
Once the container is built, you can run it with the following command: