docker file setup
This commit is contained in:
1 parent
2fef051c2f
commit
77cc5273ac
6 files changed
+58
-31
No files matched your search
@@ -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