fix(api): create /app/user-files with nestjs ownership in Dockerfile
Directory must exist before nestjs user takes over — otherwise DkvExportService cannot write xlsx export files and throws EACCES on first inbox processing run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -21,7 +21,9 @@ FROM base AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
RUN addgroup --system --gid 1001 nestjs && \
|
||||
adduser --system --uid 1001 nestjs
|
||||
adduser --system --uid 1001 nestjs && \
|
||||
mkdir -p /app/user-files && \
|
||||
chown nestjs:nestjs /app/user-files
|
||||
COPY --from=deps /app/package.json /app/pnpm-workspace.yaml /app/pnpm-lock.yaml ./
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=deps /app/apps/api/node_modules ./apps/api/node_modules
|
||||
|
||||
Reference in New Issue
Block a user