fix(docker): chown by numeric uid/gid (busybox adduser creates no eponymous group)
This commit is contained in:
@@ -24,7 +24,7 @@ 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
|
||||
&& chown -R 1001:1001 /app/infrastructure
|
||||
USER fleetforge
|
||||
EXPOSE 3000
|
||||
CMD ["node", "apps/api/dist/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user