OldSpace / Dockerfile
Seniordev22's picture
Update Dockerfile
5bcbf6e verified
Raw
History Blame Contribute Delete
437 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 libglx-mesa0 libglib2.0-0 libsm6 libxext6 libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
ENV HF_HOME=/tmp/hf_cache
RUN mkdir -p /tmp/hf_cache
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]