Dockerfiles: reduce image size (#12702)

This commit is contained in:
Karsten Hassel
2025-01-22 19:40:51 +01:00
committed by GitHub
parent f3c4233b9f
commit a95a51c6f0
2 changed files with 5 additions and 3 deletions

View File

@@ -31,7 +31,8 @@ RUN groupadd --gid ${GID} ${USER} \
USER ${USER}
RUN npm install --omit=dev
RUN npm install --omit=dev \
&& rm -rf .npm
# TODO: generate lockfiles for each package manager
## pnpm import \

View File

@@ -38,8 +38,9 @@ COPY --from=git --chown=${USER}:${USER} /usr/src/app/install/package.json /usr/s
USER ${USER}
RUN npm install
RUN npm install \
&& rm -rf .npm
FROM node:lts-slim AS final
ENV NODE_ENV=development \