ML_water_potability / Dockerfile
abhishekrs4's picture
fixed port number for hugging_face
83deef6
raw
history blame
518 Bytes
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"]