Skip to content

Commit

Permalink
fix(docker): also copy package-lock.json before install (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagelbits authored Apr 1, 2022
1 parent db36b74 commit 20fd832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV MONGODB_URI mongodb://localhost/5e-database

## Add code
WORKDIR /data/db2
COPY --chown=mongodb:mongodb package.json /data/db2/
COPY --chown=mongodb:mongodb package.json package-lock.json /data/db2/
RUN npm install
COPY --chown=mongodb:mongodb . /data/db2/

Expand Down

0 comments on commit 20fd832

Please sign in to comment.