Seed writable Pi runtime config in Docker

This commit is contained in:
2026-07-30 20:31:10 -04:00
parent 1a63da77f3
commit 8d6c471b10
4 changed files with 21 additions and 4 deletions
+5 -1
View File
@@ -12,10 +12,14 @@ COPY shared ./shared
COPY db/migrations ./db/migrations
COPY scripts ./scripts
RUN node scripts/stamp-asset-version.mjs
COPY docker-entrypoint.sh /usr/local/bin/roast-command-center-entrypoint
RUN chmod 755 /usr/local/bin/roast-command-center-entrypoint
# The optional Pi agent configuration is mounted read-only here at runtime.
# The optional Pi agent configuration is mounted read-only at /run and copied to this writable
# runtime directory by the entrypoint; Pi's auth storage needs a sibling lock file.
ENV HOME=/home/node
RUN mkdir -p /home/node/.pi/agent && chown -R node:node /home/node/.pi
USER node
EXPOSE 8090
ENTRYPOINT ["roast-command-center-entrypoint"]
CMD ["node", "server/index.js"]