translate-nastroje / Dockerfile
deboker's picture
Update Dockerfile
e686269 verified
raw
history blame contribute delete
339 Bytes
# Dockerfile
FROM python:3.10-slim
WORKDIR /app
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
# Toto je dôležité
ENV TRANSFORMERS_CACHE=/app/cache
ENV HF_HOME=/app/cache
ENV HF_HUB_CACHE=/app/cache
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]