Spaces:
Running
Running
File size: 477 Bytes
8d4c60f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.9.16-slim-bullseye
RUN mkdir -p /app
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt install build-essential -yq && \
apt-get clean && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app
RUN pip install -r requirements.txt
COPY . /app
EXPOSE 7860
CMD [ "uvicorn" , "/app/app.py" , "--host" , "0.0.0.0" , "--port" , "7860" ]
|