| FROM node:22-slim |
|
|
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| git openssh-client build-essential python3 python3-pip \ |
| g++ make ca-certificates curl gettext \ |
| |
| libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 \ |
| libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 \ |
| libxrandr2 libgbm1 libasound2 libpango-1.0-0 libcairo2 \ |
| |
| ffmpeg \ |
| && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* |
|
|
| |
| RUN npx playwright install chromium --with-deps && \ |
| mv /root/.cache/ms-playwright/chromium-* /root/.cache/ms-playwright/chromium |
|
|
| |
| RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages |
| |
| RUN pip3 install --no-cache-dir faster-whisper edge-tts --break-system-packages |
|
|
| |
| RUN npm install -g openclaw@latest --unsafe-perm |
|
|
|
|
| |
| WORKDIR /app |
| COPY sync.py . |
| COPY start-openclaw.sh . |
| COPY openclaw.json . |
| RUN chmod +x start-openclaw.sh |
|
|
| |
| ENV PORT=7860 HOME=/root |
|
|
| EXPOSE 7860 |
| CMD ["./start-openclaw.sh"] |