Injects custom CSS and JS into the Paperclip UI during Docker build: - RTL layout overrides for Tailwind, Radix UI, and MDXEditor - Hebrew translation script with MutationObserver for dynamic content - Patch script to modify index.html with dir="rtl" and lang="he" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
751 B
Docker
25 lines
751 B
Docker
FROM node:24-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN npm install -g paperclipai
|
|
|
|
# Inject Hebrew RTL + translation into the UI
|
|
COPY assets/rtl-override.css /tmp/rtl-override.css
|
|
COPY assets/translate-he.js /tmp/translate-he.js
|
|
COPY patch-html.sh /tmp/patch-html.sh
|
|
RUN bash /tmp/patch-html.sh && rm -f /tmp/patch-html.sh /tmp/rtl-override.css /tmp/translate-he.js
|
|
|
|
RUN mkdir -p /data/instances/default/data/storage \
|
|
/data/instances/default/data/backups \
|
|
/data/instances/default/secrets \
|
|
/data/instances/default/logs
|
|
|
|
COPY config.json /data/instances/default/config.json
|
|
|
|
ENV PAPERCLIP_HOME=/data
|
|
|
|
EXPOSE 3100
|
|
|
|
CMD ["paperclipai", "run"]
|