Revert "fix(deploy): chown volume at runtime so containers work with root-owned mounts"

This reverts commit f32655d9c2.
This commit is contained in:
MouT 2026-05-30 21:43:27 +08:00
parent f32655d9c2
commit dfd883dcb3

View file

@ -80,7 +80,7 @@ COPY plugins/_official ./plugins/_official
FROM ${RUNTIME_IMAGE}
RUN apk add --no-cache tini su-exec poppler-utils && \
RUN apk add --no-cache tini poppler-utils && \
addgroup -S -g 1001 open-design && \
adduser -S -D -H -u 1001 -G open-design open-design
@ -110,8 +110,6 @@ ENV OD_PORT=7456
EXPOSE 7456
# Stay as root so the entrypoint can fix volume permissions (Railway
# and similar platforms mount volumes as root). Privileges are dropped
# to open-design right before the daemon starts.
USER open-design
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["sh", "-c", "chown -R open-design:open-design /app/.od 2>/dev/null || true && exec su-exec open-design node apps/daemon/dist/cli.js --no-open"]
CMD ["node", "apps/daemon/dist/cli.js", "--no-open"]