Skip to content

Commit f79bf4b

Browse files
authored
fix(release): fix Dockerfile (#460)
* Huh. I didn't know you could do that. * Cleanup and chown to fix * npm update while I'm in here
1 parent fb89f40 commit f79bf4b

3 files changed

Lines changed: 14162 additions & 423 deletions

File tree

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
**/built/
3+
**/built/**

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ ENV MONGODB_URI mongodb://localhost/5e-database
2121

2222
## Add code
2323
WORKDIR /data/db2
24-
COPY . /data/db2
25-
24+
COPY --chown=mongodb:mongodb package.json /data/db2/
2625
RUN npm install
26+
COPY --chown=mongodb:mongodb . /data/db2/
27+
2728

2829
RUN mongod --fork --logpath /var/log/mongodb.log --dbpath /data/db2 \
2930
&& npm run db:refresh \

0 commit comments

Comments
 (0)