Spaces:
No application file
No application file
FROM python:3.7 | |
WORKDIR . | |
RUN apt-get -y update && apt-get install -y \ | |
python3-dev \ | |
apt-utils \ | |
python-dev \ | |
build-essential \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN pip install --no-cache-dir -U pip | |
RUN pip install --no-cache-dir -U cython | |
RUN pip install --no-cache-dir -U numpy | |
RUN pip install --no-cache-dir -U pystan | |
COPY app/requirements.txt . | |
RUN pip install --no-cache-dir -U -r requirements.txt | |
COPY app/ . | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9000"] |