File size: 671 Bytes
2367065
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]