feat: upgrade to SQLite session & data store with zero-data-loss migration, dark theme, and Turkish i18n
This commit is contained in:
parent
1af973d001
commit
56274f479b
27 changed files with 4222 additions and 1360 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -1,12 +1,14 @@
|
|||
# ----------------------------------------------------
|
||||
# Stage 1: Build TypeScript Application
|
||||
# Stage 1: Build TypeScript Application & Native Addons
|
||||
# ----------------------------------------------------
|
||||
FROM node:18-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
|
||||
COPY tsconfig.json ./
|
||||
COPY src/ ./src/
|
||||
|
|
@ -14,6 +16,7 @@ COPY views/ ./views/
|
|||
COPY public/ ./public/
|
||||
|
||||
RUN npm run build
|
||||
RUN npm prune --omit=dev
|
||||
|
||||
# ----------------------------------------------------
|
||||
# Stage 2: Production Runtime
|
||||
|
|
@ -26,16 +29,17 @@ ENV NODE_ENV=production
|
|||
ENV PORT=3000
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy compiled code and assets from builder
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY views/ ./views
|
||||
COPY public/ ./public
|
||||
|
||||
# Ensure local data directory exists for persistent JSON db
|
||||
RUN mkdir -p /app/data
|
||||
# Ensure local data directory exists for persistent SQLite db & secrets
|
||||
RUN mkdir -p /app/data && chown -R node:node /app
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD wget -qO- http://localhost:3000/login > /dev/null || exit 1
|
||||
|
||||
CMD ["node", "dist/server.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue