File size: 393 Bytes
e49f5ad |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.7.4-stretch
WORKDIR /home/user
RUN apt-get update && apt-get install -y curl git pkg-config cmake
# install as a package
COPY requirements.txt /home/user/
RUN pip install -r requirements.txt
# copy code
COPY utils.py /home/user/
COPY webapp.py /home/user/
COPY eval_labels_example.csv /home/user/
EXPOSE 8501
# cmd for running the API
CMD ["streamlit", "run", "webapp.py"]
|