fix: Handle quoted password hash and improve temp directory setup
continuous-integration/drone/push Build is passing

- Strip surrounding quotes from ADMIN_PASSWORD_HASH (Portainer adds them)
- Rewrite temp directory initialization with better fallback logic
- Ensure /app/temp directory exists with correct permissions in Docker
This commit is contained in:
Paul Nothaft
2026-01-05 22:30:59 +01:00
parent 6beb4ae03c
commit 82d4c37294
3 changed files with 53 additions and 41 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ RUN addgroup -g 1001 -S nodejs && \
adduser -S nodejs -u 1001
# Create necessary directories with proper permissions
RUN mkdir -p logs temp /tmp/minio-webui-temp /run/nginx && \
chown -R nodejs:nodejs /app logs temp /tmp/minio-webui-temp && \
RUN mkdir -p /app/logs /app/temp /tmp/minio-webui-temp /run/nginx && \
chown -R nodejs:nodejs /app /tmp/minio-webui-temp && \
chown -R nodejs:nodejs /var/lib/nginx /var/log/nginx /run/nginx
# Create startup script