From 935ab156eccbb59e03e9fa5cf26d5fe7c8dfd816 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Wed, 14 Feb 2024 12:25:15 +0100 Subject: [PATCH] Fix and update frontend Dockerfile - Update node image to node 21 - Copy project.inlang before running npm ci --- frontend/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f1e69ab763..4aa77d6d16 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,16 +1,17 @@ -FROM node:18-alpine AS builder +FROM node:21-alpine AS builder WORKDIR /app ARG PUBLIC_BACKEND_API_URL ENV PUBLIC_BACKEND_API_URL=$PUBLIC_BACKEND_API_URL COPY package*.json . +COPY project.inlang/ . RUN npm ci COPY . . RUN npm run build RUN npm prune --production -FROM node:18-alpine +FROM node:21-alpine WORKDIR /app COPY --from=builder /app/build build/ COPY --from=builder /app/node_modules node_modules/