refactor: migrate from MongoDB to SQLite, updating database schema and configuration for improved performance and simplicity

This commit is contained in:
Julien Froidefond
2025-10-24 15:11:29 +02:00
parent 07c6bae2c4
commit ac5fa85185
22 changed files with 278 additions and 219 deletions

View File

@@ -1,10 +1,6 @@
# Build stage
FROM node:20-alpine AS builder
# Declare MONGODB_URI as an argument for the builder stage
ARG MONGODB_URI
ENV MONGODB_URI=$MONGODB_URI
# Set working directory
WORKDIR /app
@@ -74,8 +70,8 @@ RUN chmod +x docker-entrypoint.sh
# Add non-root user for security
RUN addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 nextjs && \
mkdir -p /app/.cache && \
chown -R nextjs:nodejs /app /app/.cache && \
mkdir -p /app/.cache /app/data && \
chown -R nextjs:nodejs /app /app/.cache /app/data && \
chown nextjs:nodejs docker-entrypoint.sh
USER nextjs