fix(docker): pre-create+chown infrastructure dirs (lib software.ts mkdirs at load); api run mounts explicit release dirs
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user