From e707875e826fb5a01a29ff321f29adb2011cf9a8 Mon Sep 17 00:00:00 2001 From: Oscar Eriksson Date: Sun, 5 Nov 2023 20:30:40 +0100 Subject: [PATCH] Make docker build Requires Node 16 but current LTS is 18 --- backend/Dockerfile | 4 ++-- frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 89c6d3c..e848c85 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as build +FROM node:16 as build COPY package.json package-lock.json ./ COPY ./prisma/ . @@ -7,7 +7,7 @@ RUN npm install COPY . . RUN npm run build -FROM node:lts +FROM node:16 COPY --from=build ./build ./build/ COPY --from=build ./src/schemas ./build/schemas diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 99b5150..55dc48e 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as build +FROM node:16 as build COPY package.json package-lock.json ./