Browse Source

feat: add dockerfile

add-license-1
Garrit Franke 4 years ago
parent
commit
dc780e6303
  1. 3
      .Dockerignore
  2. 9
      Dockerfile
  3. 2
      package.json

3
.Dockerignore

@ -0,0 +1,3 @@
node_modules/
out/
.next/

9
Dockerfile

@ -0,0 +1,9 @@
FROM node:13-alpine
COPY . /app
WORKDIR /app
RUN npm install && npm run build
FROM nginx:alpine
COPY --from=0 /app/out /usr/share/nginx/html
EXPOSE 80

2
package.json

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "next build && next export",
"start": "next start"
},
"dependencies": {

Loading…
Cancel
Save