-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (24 loc) · 834 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
33
34
35
FROM python:3.7-slim
ARG az_cog_endpoint
ARG az_cog_key
ARG az_cog_region
ARG az_mlw_infer_endpoint_predict_framingham_heart
ARG az_mlw_infer_endpoint_key_predict_framingham_heart
ENV AZ_COG_ENDPOINT=$az_cog_endpoint
ENV AZ_COG_KEY=$az_cog_key
ENV AZ_COG_REGION=$az_cog_region
ENV AZ_MLW_INFER_ENDPOINT_PREDICT_FRAMINGHAM_HEART=$az_mlw_infer_endpoint_predict_framingham_heart
ENV AZ_MLW_INFER_ENDPOINT_KEY_PREDICT_FRAMINGHAM_HEART=$az_mlw_infer_endpoint_key_predict_framingham_heart
WORKDIR /app
ADD . ./
RUN apt-get update && \
apt-get -y upgrade
RUN apt-get --yes install libsndfile1
RUN pip install --upgrade pip && \
pip install -r requirements.txt
RUN mkdir ~/.streamlit
RUN cp .streamlit/config.prod.toml ~/.streamlit/config.toml
EXPOSE 3000 80 8501
WORKDIR /app
ENTRYPOINT ["streamlit", "run"]
CMD ["app.py"]