Spaces:
Sleeping
Sleeping
File size: 518 Bytes
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 ./trained_models/knn_ada_boost /data/models/knn_ada_boost
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"]
|