| FROM lscr.io/linuxserver/chromium:latest |
|
|
| |
| RUN apt-get update && \ |
| apt-get install -y --no-install-recommends python3 python3-pip && \ |
| pip3 install --no-cache-dir huggingface_hub && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| COPY sync.py /usr/local/bin/sync.py |
| RUN chmod +x /usr/local/bin/sync.py |
|
|
| |
| ENV PUID=1000 |
| ENV PGID=1000 |
| ENV TZ=Asia/Shanghai |
| ENV CHROMIUM_FLAGS="--no-sandbox --disable-dev-shm-usage --disable-gpu" |
| ENV CUSTOM_PORT=3000 |
|
|
| |
| COPY entrypoint.sh /entrypoint.sh |
| RUN chmod +x /entrypoint.sh |
|
|
| ENTRYPOINT ["/entrypoint.sh"] |