File size: 480 Bytes
b1f727f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.7.4-stretch

WORKDIR /home/user

RUN apt-get update && apt-get install -y curl git pkg-config cmake

# copy code
COPY setup.py /home/user
COPY utils.py /home/user
COPY app.py /home/user
COPY requirements.txt /home/user

# install as a package
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN python3 -c "from utils import get_pipelines;get_pipelines()" 

EXPOSE 8501

# cmd for running the API
CMD ["python", "-m", "streamlit", "run", "app.py"]