From 20ac8f69ea159c4472cf01e7de16c551812de2ae Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 6 Sep 2022 11:38:36 +0200 Subject: [PATCH] Update dockerfile --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59ec0df06..0e6a464b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ +ARG PNPM_VERSION=7.11.0 +ARG NPM_VERSION=8.19.1 +ARG TARGETPLATFORM + FROM node:18-slim as build WORKDIR /app -ARG PNPM_VERSION=7.11.0 - RUN apt update && apt -y install curl RUN npm --no-update-notifier --no-fund --global install pnpm@${PNPM_VERSION} @@ -14,9 +16,6 @@ RUN pnpm build FROM node:18-slim WORKDIR /app ENV NODE_ENV production -ARG NPM_VERSION=8.19.1 -ARG PNPM_VERSION=7.11.0 -ARG TARGETPLATFORM RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3 RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/