File size: 455 Bytes
3ffc83b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
ENV HF_HOME=/app/.cache
ENV TRANSFORMERS_CACHE=/app/.cache
WORKDIR /app
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"]