forked from luiscruz/SMS-Spam-Detection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 805 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.8.10-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends git curl ffmpeg libsm6 libxext6 \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /root/
ENV VIRTUAL_ENV=/root/venv
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV PYTHONPATH="${PYTHONPATH}:/root/project/"
COPY requirements.txt .
RUN python -m pip install --upgrade pip &&\
pip install cython &&\
pip install -r requirements.txt &&\
pip install alibi-detect
COPY deploy_model ./deploy_model
COPY train_model ./train_model
COPY datadrift_detect ./datadrift_detect
COPY production_endpoint/ ./production_endpoint
COPY monitoring/ ./monitoring
COPY dataset/ ./dataset
COPY output/ ./output
EXPOSE 8080
CMD ["python", "deploy_model/serve_model.py"]