diff --git a/.gitignore b/.gitignore index 4f26d58d4..4d8e5d72f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ .vscode *.sqlite3 temp/ -./db/ +db/ 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/