feat: update Docker setup to create uploads directory and ensure data persistence

This commit is contained in:
2025-10-18 18:43:48 +02:00
parent 1aaeafa9fc
commit 8ccca751aa
3 changed files with 9 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ RUN pnpm install --frozen-lockfile
COPY . .
ENV NEXTAUTH_SECRET=your_super_secret_key_here_change_in_production
RUN npx prisma generate
RUN npx prisma db push
RUN pnpm run build
EXPOSE 3000
CMD ["pnpm", "start"]
CMD ["sh", "-c", "mkdir -p /app/prisma/data && npx prisma db push && pnpm start"]