From 8653040f73a1012cc16f7e61a0f9d686cca5e8bc Mon Sep 17 00:00:00 2001 From: GURU SENSEI Date: Sun, 30 Jun 2024 18:40:32 +0530 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e404d9642..6f31f09500 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,20 @@ -FROM node:lts-buster +FROM node:21 AS builder -RUN apt-get update && \ - apt-get install -y \ - ffmpeg \ - imagemagick \ - webp && \ - apt-get upgrade -y && \ - rm -rf /var/lib/apt/lists/* +WORKDIR /app -COPY package.json . - -RUN npm install && npm install qrcode-terminal +COPY package*.json ./ +RUN npm install COPY . . -EXPOSE 5000 +RUN apt-get update && apt-get install -y ffmpeg imagemagick webp + +FROM node:21-alpine -CMD ["npm", "start"] +WORKDIR /app + +COPY --from=builder /app/node_modules ./node_modules +COPY --from=builder /app . + +EXPOSE 5000 +CMD [ "npm", "start" ] From 321f37d7787539b0866cd479e8b47d2e252e42f0 Mon Sep 17 00:00:00 2001 From: GURU SENSEI Date: Fri, 5 Jul 2024 05:27:28 -0500 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6f31f09500..8818d25909 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:21 AS builder WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install --platform=linuxmusl COPY . .