[dyad] wrote 3 file(s)

This commit is contained in:
Michael committed 2025-11-06 13:51:51 +01:00
1 parent a83d87855f
commit 20edfef8bb
3 files changed
+19 -19

No files matched your search

+4 -5
View File
@@ -9,12 +9,11 @@ RUN npm install
# Copy app source
COPY . .
# Create necessary directories with correct permissions
# Create directories and set permissions
RUN mkdir -p /app/data /app/public/uploads && \
chown -R node:node /app/data /app/public/uploads
# Switch to non-root user
USER node
chown -R node:node /app && \
chmod -R 755 /app && \
chmod -R 777 /app/data /app/public/uploads
# Expose port
EXPOSE 2222