medicine-ml-chatbot / Dockerfile
erichuber's picture
Update Dockerfile
1d80294 verified
raw
history blame contribute delete
354 Bytes
FROM python:3.11
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /code/cache && chmod -R 777 /code/cache
ENV HF_HOME=/code/cache
ENV TRANSFORMERS_CACHE=/code/cache
ENV HF_DATASETS_CACHE=/code/cache/datasets
CMD ["uvicorn", "web_terminal_chat:app", "--host", "0.0.0.0", "--port", "7860"]