From f1d65ddcb089249639ab2b1848c760504b3d9220 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Wed, 14 Feb 2024 12:25:15 +0100 Subject: [PATCH 1/2] Fix and update frontend Dockerfile - Update node image to node 21 - Copy project.inlang before running npm ci --- frontend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f1e69ab76..59e3c3fcc 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,16 +1,16 @@ -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 . -RUN npm ci COPY . . +RUN npm ci 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/ From 17d20a936b757addde4e1d3525e44626776d3a24 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Wed, 14 Feb 2024 12:44:26 +0100 Subject: [PATCH 2/2] Update gitignore Somehow ./db/ did not gitignore db/django_secret_key --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4f26d58d4..4d8e5d72f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ .vscode *.sqlite3 temp/ -./db/ +db/