diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..59d1a33 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.DS_Store +dist/electron/* +dist/web/* +build/* +dist/* +!build/icons +node_modules/ +npm-debug.log +npm-debug.log.* +thumbs.db +!.gitkeep diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e9eb2a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:8 AS build + +WORKDIR /app + +COPY . /app + +RUN npm install && \ + npm run build:web + +FROM nginx:alpine + +COPY --from=build --chown=nginx:nginx /app/dist/web /usr/share/nginx/html + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"]