commit
d634d55b1a
13
Dockerfile
Normal file
13
Dockerfile
Normal 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"]
|
||||
@ -33,3 +33,11 @@ yarn dev
|
||||
yarn build
|
||||
yarn start
|
||||
```
|
||||
|
||||
### Static build
|
||||
|
||||
```
|
||||
yarn export
|
||||
```
|
||||
|
||||
creates `./out`
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user