Spaces:
Sleeping
Sleeping
File size: 531 Bytes
2968df2 c65e772 8d31667 93ef80a 306cef0 fa6a0d9 c65e772 2968df2 c65e772 2968df2 fa6a0d9 0d4db9d 0915ca0 0d4db9d e413e39 2968df2 306cef0 e2ccff7 c65e772 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
FROM python:3.11-slim
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
WORKDIR /app
COPY . .
# create data folder & sesskey file, open perms
RUN mkdir -p data \
&& touch .sesskey \
&& chmod 777 data .sesskey
RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONPATH=/app/src
# last RUN or COPY step
USER root
# tell Hugging Face this is the public web port
EXPOSE 80
# listen on 0.0.0.0:80 so HF can forward traffic
EXPOSE 5001
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5001"]
|