11498: fixed issues with Dockerfile-Dev (#11518)

This commit is contained in:
Brennan Davis
2019-11-27 13:01:13 -07:00
committed by Sabe Jones
parent 6395070eb6
commit fb74f59ae5
2 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,2 @@
node_modules
.git
website

View File

@@ -1,5 +1,11 @@
FROM node:12
WORKDIR /code
COPY package*.json /code/
RUN npm install
RUN npm install -g gulp-cli mocha
FROM node:12
# Install global packages
RUN npm install -g gulp-cli mocha
# Copy Habitica code into container and install dependencies
WORKDIR /usr/src/habitica
COPY . /usr/src/habitica
RUN npm install
RUN npm run postinstall