diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..74b7ed51529 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:8-jessie + +WORKDIR /usr/src + +# Install dependencies +COPY package.json yarn.lock ./ +RUN yarn + +# Copy the relevant files to the working directory +COPY . . + +# Build and export the app +RUN yarn build +RUN cp -R dist /public diff --git a/now.json b/now.json index 4326d908897..08b930171cf 100644 --- a/now.json +++ b/now.json @@ -1,24 +1,4 @@ { "name": "neo4j-browser", - "engines": { - "node": "^8.11.2" - }, - "public": true, - "static": { - "public": "dist" - }, - "files": [ - "scripts/", - "src/", - ".babelrc", - ".eslintignore", - ".eslintrc.json", - ".yarnrc", - "cypress.json", - "jsconfig.json", - "postcss.config.js", - "webpack.config.js", - "yarn.lock", - "README.md" - ] + "type": "static" }