mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Improve production stability by fixing backup directory permissions
Adjust Dockerfile to create and grant permissions for backup directories, install PostgreSQL client for backups, and update BackupService to use the correct production backup path to resolve EACCES errors. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/K3Lzcje
This commit is contained in:
1 parent
1c126fb77a
commit
b079d35e3a
4 files changed
+262
-8
No files matched your search
+4
-4
@@ -84,8 +84,8 @@ COPY --from=build --chown=nextjs:nodejs /app/shared ./shared
|
||||
# Create symlink for public files to be accessible from dist
|
||||
RUN ln -sf /app/dist/public /app/dist/public
|
||||
|
||||
# Create uploads directory with proper permissions
|
||||
RUN mkdir -p /app/uploads && chown -R nextjs:nodejs /app/uploads
|
||||
# Create uploads and backups directories with proper permissions
|
||||
RUN mkdir -p /app/uploads /app/backups && chown -R nextjs:nodejs /app/uploads /app/backups
|
||||
|
||||
# Switch to non-root user
|
||||
USER nextjs
|
||||
@@ -94,9 +94,9 @@ USER nextjs
|
||||
EXPOSE 3000
|
||||
ENV PORT=3000
|
||||
|
||||
# Install wget for health check
|
||||
# Install wget for health check and postgresql-client for pg_dump
|
||||
USER root
|
||||
RUN apk add --no-cache wget
|
||||
RUN apk add --no-cache wget postgresql-client
|
||||
USER nextjs
|
||||
|
||||
# Health check
|
||||
|
||||
Reference in new issue
Block a user