chore: configure Dockerfile to serve the project as a static site

This commit is contained in:
Joe Niland
2023-11-21 13:06:50 +11:00
parent 9809ac6e9e
commit e6979ff06c
3 changed files with 65 additions and 34 deletions
+13 -1
View File
@@ -92,7 +92,19 @@ npm run build
```bash
docker build -t astroplate .
docker run -p 3000:3000 astroplate
# or
# docker --build-arg=npm build -t astroplate .
# or
# docker --build-arg=pnpm build -t astroplate .
docker run -p 3000:80 astroplate
# or
# docker run --rm -p 3000:80 astroplate
```
To access the shell within the container:
```bash
docker run -it --rm astroplate ash
```
<!-- reporting issue -->