docker file setup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user