Spaces:
Running

MX01 / Dockerfile
NotLucifer18
Completely remove tor from Dockerfiles to prevent HF bans
97a8371
Raw History Blame
542 Bytes
FROM python:3.10
WORKDIR /app
RUN apt update && apt install -y \
git \
libavif-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libwebp-dev \
libfreetype6-dev \
libopenjp2-7-dev \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install --upgrade pip setuptools wheel
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt
RUN python -m pip install --no-cache-dir --upgrade Pillow
COPY . /app
# Hugging Face Spaces requires port 7860
EXPOSE 7860
CMD ["bash", "start.sh"]