OpenCensor-H1-Mini / Dockerfile
LikoKIko's picture
Update Dockerfile
000b24e verified
raw
history blame contribute delete
549 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
ENV HF_HOME=/app/.cache
ENV TRANSFORMERS_CACHE=/app/.cache
WORKDIR /app
# Cache bust to force Hugging Face to pull the new Gradio version
# Cache bust: 1
RUN mkdir -p /app/.cache && chmod 777 /app/.cache
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl libgomp1 git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN python -m pip install --upgrade pip && pip install -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]