Merge pull request #153 from LaconicNetwork/dockerfile

Dockerfile
This commit is contained in:
Zach 2023-10-18 11:15:25 -04:00 committed by GitHub
commit d634d55b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:lts-slim
ARG NEXT_PUBLIC_DATOCMS_BYPASS_TYPE=local_json
WORKDIR /app
COPY . .
RUN yarn && yarn build
EXPOSE 3000
CMD ["yarn", "start"]

View File

@ -33,3 +33,11 @@ yarn dev
yarn build
yarn start
```
### Static build
```
yarn export
```
creates `./out`

View File

@ -9,6 +9,7 @@
"prepare": "husky install",
"dev": "next",
"build": "next build",
"export": "next export",
"build:analyze": "cross-env ANALYZE=true yarn build",
"postbuild": "next-sitemap",
"start": "next start",