ci: improve first install

This commit is contained in:
Vasily Zubarev
2025-03-20 21:14:30 +01:00
parent 02c4c42c02
commit 33727a431e
5 changed files with 35 additions and 17 deletions

View File

@@ -25,6 +25,11 @@ RUN npm run build
# Production stage
FROM node:23-slim
# Default environment variables
ENV UPLOAD_PATH=/app/uploads
ENV NODE_ENV=production
ENV DATABASE_URL=file:/app/data/db.sqlite
# Install required system dependencies
RUN apt-get update && apt-get install -y \
ghostscript \
@@ -36,7 +41,7 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app
# Create upload directory and set permissions
RUN mkdir -p /app/upload && chown -R node:node /app/upload
RUN mkdir -p /app/upload
# Copy built assets from builder
COPY --from=builder /app/node_modules ./node_modules