Changes in docker files

This commit is contained in:
Aarni Halinen
2018-08-08 19:50:39 +03:00
parent 984940171d
commit abb9d5271c
7 changed files with 47 additions and 34 deletions
+15 -5
View File
@@ -1,7 +1,17 @@
FROM node:8
COPY package*.json ./
FROM node:10
ENV IS_DOCKER 1
RUN env
RUN npm install
COPY . .
EXPOSE 8080
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