Spaces:
Runtime error
Runtime error
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" ] | |