Skip to content

Commit fb74f59

Browse files
davis1410SabreCat
authored andcommitted
11498: fixed issues with Dockerfile-Dev (HabitRPG#11518)
1 parent 6395070 commit fb74f59

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
22
.git
3-
website

Dockerfile-Dev

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
FROM node:12
2-
WORKDIR /code
3-
COPY package*.json /code/
4-
RUN npm install
5-
RUN npm install -g gulp-cli mocha
1+
FROM node:12
2+
3+
# Install global packages
4+
RUN npm install -g gulp-cli mocha
5+
6+
# Copy Habitica code into container and install dependencies
7+
WORKDIR /usr/src/habitica
8+
COPY . /usr/src/habitica
9+
10+
RUN npm install
11+
RUN npm run postinstall

0 commit comments

Comments
 (0)