Enhance Dockerfile to create SQLite data directory with proper ownership

This commit is contained in:
MayaTheShy
2026-03-22 02:57:18 -04:00
parent efc3a88052
commit 9d5fceee5c

View File

@@ -15,10 +15,13 @@ RUN apk del python3 make g++
COPY . .
# Create data directory for SQLite
RUN mkdir -p /data
# Create data directory for SQLite with proper ownership
RUN mkdir -p /data && chown node:node /data
VOLUME /data
# Run as non-root user for security
USER node
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \