Skip to content

Commit

Permalink
build: use npm v10.5.2 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Apr 16, 2024
1 parent bcf95e7 commit d6f0769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:18.19.1-bullseye-slim AS builder

WORKDIR /app

RUN npm install npm@10.5.2 -g
COPY package.json package-lock.json tsconfig.json /app/
RUN npm ci --include=dev
COPY src /app/src
Expand All @@ -28,7 +29,7 @@ RUN apt-get update -y && apt-get install --no-install-recommends -y expect ca-ce
&& rm -rf /var/cache/{apt,debconf,fontconfig,ldconfig}/* \
&& rm -rf /opt /root/.npm /usr/share/man /usr/lib/arm-linux-gnueabihf/perl-base /usr/include /usr/local/include /usr/local/lib/node_modules/npm/docs \
&& rm -rf /tmp/v8-compile-cache-0 /sbin/debugfs /sbin/e2fsck /sbin/ldconfig /usr/bin/perl* \
&& cd /app && npm install --omit=dev --omit=optional
&& cd /app && npm install npm@10.5.2 -g && npm install --omit=dev --omit=optional

ENTRYPOINT ["/usr/bin/tini", "--"]

Expand Down

0 comments on commit d6f0769

Please sign in to comment.