diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7001e78 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules/** +.next/** +.idea/** \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..25205cb --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file