From fd5a3170d112cc2a9cd9bd71442494aad51a0c8e Mon Sep 17 00:00:00 2001 From: akadapa <134102641+akadapa@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:15:54 -0500 Subject: [PATCH] Update Dockerfile to install Curl Update Dockerfile to install Curl --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 57a82aa0..af1bdf62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ FROM node:20 as buildContainer WORKDIR /app + +# Install curl for buildContainer +RUN apt-get update && apt-get install -y curl + COPY . /app RUN npm install -g npm@latest RUN npm install --legacy-peer-deps @@ -11,6 +15,10 @@ RUN npm run build:ssr FROM node:20-alpine WORKDIR /app + +# Install curl for productionContainer +RUN apk add --no-cache curl + COPY --from=buildContainer /app/package.json /app ENV NODE_OPTIONS --max-old-space-size=16384