esp32-chat-bot / Dockerfile
MHD011's picture
Update Dockerfile
860265a verified
raw
history blame
308 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir -p /app/model_cache && chmod -R 777 /app/model_cache
ENV TRANSFORMERS_CACHE=/app/model_cache
ENV HF_HOME=/app/model_cache
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]