Skip to content

Commit

Permalink
fix(release): fix Dockerfile (#460)
Browse files Browse the repository at this point in the history
* Huh. I didn't know you could do that.

* Cleanup and chown to fix

* npm update while I'm in here
  • Loading branch information
bagelbits authored Apr 1, 2022
1 parent fb89f40 commit f79bf4b
Show file tree
Hide file tree
Showing 3 changed files with 14,162 additions and 423 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules/
**/built/
**/built/**
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ ENV MONGODB_URI mongodb://localhost/5e-database

## Add code
WORKDIR /data/db2
COPY . /data/db2

COPY --chown=mongodb:mongodb package.json /data/db2/
RUN npm install
COPY --chown=mongodb:mongodb . /data/db2/


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

0 comments on commit f79bf4b

Please sign in to comment.