2024Lee's picture
Upload folder using huggingface_hub
c58b8ac verified
raw
history blame contribute delete
350 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git libgl1 libglib2.0-0 && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user:user . .
USER user
EXPOSE 7860
CMD ["python", "app.py"]