Changes in docker files
This commit is contained in:
+15
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user