Create Dockerfile (the image is quite big, but it works)
This commit is contained in:
parent
9a84dcb508
commit
88d4f1dae8
|
|
@ -0,0 +1,3 @@
|
|||
node_modules/**
|
||||
.next/**
|
||||
.idea/**
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue