test-api / Dockerfile
aidpc's picture
Update Dockerfile
72c5d5d verified
raw
history blame
230 Bytes
FROM python:3.10-slim
WORKDIR /code
ENV TRANSFORMERS_CACHE=/code/cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]