Skip to content

Commit

Permalink
fix: minor housekeeping 🧽 (#770)
Browse files Browse the repository at this point in the history
* fix: remove regex for copying npm file(s)

Signed-off-by: Vinayak Kulkarni <[email protected]>

* perf: do `npm ci` since we got `package-lock.json` 🎉

Signed-off-by: Vinayak Kulkarni <[email protected]>

---------

Signed-off-by: Vinayak Kulkarni <[email protected]>
  • Loading branch information
vinayakkulkarni authored Feb 18, 2023
1 parent 007551d commit 49f342f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ RUN wget -qO- https://deb.nodesource.com/setup_18.x | bash; \
rm -rf /var/lib/apt/lists/*;

RUN mkdir -p /usr/src/app
COPY package* /usr/src/app

WORKDIR /usr/src/app

RUN npm install --omit=dev
COPY package.json /usr/src/app
COPY package-lock.json /usr/src/app

RUN npm ci --omit=dev

FROM ubuntu:focal AS final

Expand Down

0 comments on commit 49f342f

Please sign in to comment.