Spaces:
Sleeping
Sleeping
File size: 513 Bytes
e85b12f 71bf83e e85b12f 36d6e93 e85b12f 83deef6 e85b12f 83deef6 |
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.8.10-slim
WORKDIR /app
# install linux package dependencies
RUN apt-get update -y
RUN apt-get install -y libgomp1
# can copy files only from current working directory where docker builds
# cannot copy files from arbitrary directories
COPY ./model_for_production/ /data/model_for_production
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# COPY ./modeling/*.py ./modeling/
COPY ./*.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|