mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
Revert "fix(deploy): chown volume at runtime so containers work with root-owned mounts"
This reverts commit f32655d9c2.
This commit is contained in:
parent
f32655d9c2
commit
dfd883dcb3
1 changed files with 3 additions and 5 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue