Create Dockerfile (the image is quite big, but it works)

This commit is contained in:
Felix Hamme 2019-05-08 13:36:45 +02:00
parent 9a84dcb508
commit 88d4f1dae8
2 changed files with 16 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
node_modules/**
.next/**
.idea/**

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:8-alpine
COPY js /srv/js
COPY pages /srv/pages
COPY static /srv/static
COPY next.config.js package.json package-lock.json server.js style.css yarn.lock /srv/
WORKDIR /srv
RUN yarn install
RUN yarn build
EXPOSE 80
ENV TURNIERE_API_URL=https://api.turnie.re
CMD yarn start