File size: 536 Bytes
b1d8e61 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV HF_HOME=/app/.cache
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
nodejs \
npm \
sudo \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN pip3 install --no-cache-dir fastapi uvicorn huggingface_hub watchdog python-multipart
RUN pip3 install --no-cache-dir python-multipart
WORKDIR /app
COPY . .
RUN chmod 777 /app
RUN chmod +x ./start.sh
RUN chmod +x ./hf_sync.sh
EXPOSE 7860
CMD ["bash", "./start.sh"] |