| FROM ghcr.io/sillytavern/sillytavern:latest |
|
|
| USER root |
|
|
| RUN if command -v apt-get >/dev/null 2>&1; then \ |
| apt-get update && apt-get install -y --no-install-recommends nginx python3 python3-pip ca-certificates && \ |
| pip3 install --no-cache-dir huggingface_hub && \ |
| rm -rf /var/lib/apt/lists/*; \ |
| elif command -v apk >/dev/null 2>&1; then \ |
| apk add --no-cache nginx python3 py3-pip ca-certificates && \ |
| pip3 install --no-cache-dir --break-system-packages huggingface_hub; \ |
| else \ |
| echo "No supported package manager found" >&2; exit 1; \ |
| fi |
|
|
| COPY start.sh /start.sh |
|
|
| RUN chmod +x /start.sh |
|
|
| USER node |
| ENTRYPOINT ["/start.sh"] |
|
|