forked from kristian-267/MLOps-for-Image-Classification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 626 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (16 loc) · 626 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Base image
FROM python:3.10
WORKDIR /workspace
# install python
RUN apt update && \
apt install --no-install-recommends -y build-essential gcc && \
apt clean && rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
COPY setup.py setup.py
COPY src/ src/
ENV PIP_NO_CACHE_DIR=off
RUN pip install --default-timeout=300 --no-cache-dir --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt
COPY models/deployable_model.pt models/deployable_model.pt
COPY conf/ conf/
COPY app/ app/
CMD ["uvicorn", "app.cloud_deployment:app", "--host", "0.0.0.0", "--port", "80"]