Simplify docker configs

This commit is contained in:
Aarni Halinen
2018-08-09 00:24:18 +03:00
parent 951486a6b0
commit 87e7bb8a90
3 changed files with 10 additions and 19 deletions
+6 -14
View File
@@ -1,17 +1,9 @@
FROM node:7
ENV IS_DOCKER 1
RUN env
FROM node
WORKDIR /app
ADD . /app/
RUN apt-get update
RUN apt-get install nasm
RUN npm install webpack -g
WORKDIR /tmp
COPY package.json /tmp/
RUN npm config set registry http://registry.npmjs.org/ && npm install
WORKDIR /code
COPY . /code/
RUN cp -a /tmp/node_modules /code/
RUN webpack
EXPOSE 3000
RUN npm ci
CMD ["npm", "start"]
EXPOSE 8080