Pennyalpha / Dockerfile
Sergidev's picture
Update Dockerfile
ac57245 verified
raw
history blame
351 Bytes
FROM python:3.9
WORKDIR /app
# Create a directory for the cache
RUN mkdir -p /app/cache && chmod 777 /app/cache
# Set the TRANSFORMERS_CACHE environment variable
ENV TRANSFORMERS_CACHE=/app/cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]