fix(docker): pre-create+chown infrastructure dirs (lib software.ts mkdirs at load); api run mounts explicit release dirs

This commit is contained in:
Pepe44DEV
2026-09-06 23:11:13 +00:00
parent 7678700dbb
commit 84cda5287a
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/apps/api/node_modules ./apps/api/node_modules
COPY --from=builder /app/apps/api/dist ./apps/api/dist
COPY --from=builder /app/apps/api/package.json ./apps/api/
RUN mkdir -p /app/infrastructure/software-releases /app/infrastructure/agent-releases /app/infrastructure/installer \
&& chown -R fleetforge:fleetforge /app/infrastructure
USER fleetforge
EXPOSE 3000
CMD ["node", "apps/api/dist/index.js"]