diff --git a/.dockerignore b/.dockerignore index 118e49e..ea1bec1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,20 @@ -# Exclude source dev.db — live DB is on persistent volume at /app/data/dev.db -prisma/dev.db* -prisma/*.db-wal -prisma/*.db-shm +node_modules +.next +.git +.gitignore +*.md +*.log .env +.env.* +Dockerfile +.dockerignore +.gitkeep +**/*.test.ts +**/*.spec.ts +**/__tests__ +tests +e2e +docs +.vscode +.idea +*.tsbuildinfo diff --git a/Dockerfile b/Dockerfile index e0c2a8e..f487948 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM node:20-slim AS builder -RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-certificates git && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-certificates && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package.json package-lock.json* ./ -RUN npm install --no-audit --no-fund +RUN npm cache clean --force 2>/dev/null; npm install --no-audit --no-fund --prefer-offline 2>/dev/null || npm install --no-audit --no-fund COPY . . RUN npx prisma generate --schema=./prisma/schema.prisma 2>/dev/null; exit 0 RUN npm run build 2>/dev/null; exit 0