Godfrey / Dockerfile
AmeyaKawthalkar's picture
Update Dockerfile
6193462 verified
raw
history blame contribute delete
332 Bytes
FROM python:3.11
WORKDIR /code
# Create cache directory with proper permissions
RUN mkdir -p /tmp/hf_cache && chmod 777 /tmp/hf_cache
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]