From 5f3faccc5d33e477000eebbf63b529093aabf5ca Mon Sep 17 00:00:00 2001 From: hhvrc Date: Wed, 5 Feb 2025 15:34:08 +0100 Subject: [PATCH] Make docker download exact requested version --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7544594..c59780f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,9 @@ FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS build WORKDIR /app ENV DOCKER=true -ENV PNPM_VERSION=${PNPM_VERSION} ENV GIT_HASH=${GIT_HASH} -RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm +RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/download/v${PNPM_VERSION}/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm COPY package.json . COPY pnpm-lock.yaml . @@ -27,10 +26,9 @@ FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS runtime WORKDIR /app ENV DOCKER=true ENV NODE_ENV=production -ENV PNPM_VERSION=${PNPM_VERSION} ENV GIT_HASH=${GIT_HASH} -RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm +RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/download/v${PNPM_VERSION}/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm EXPOSE 3000