Files
web2.0-frontend/Dockerfile
T
2018-08-08 20:28:01 +03:00

18 lines
304 B
Docker

FROM node:7
ENV IS_DOCKER 1
RUN env
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