-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstreamlit-Dockerfile
More file actions
39 lines (27 loc) · 1.03 KB
/
streamlit-Dockerfile
File metadata and controls
39 lines (27 loc) · 1.03 KB
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
36
37
38
FROM python:3.9
USER root
RUN apt-get update && \
apt-get -y install sudo
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
RUN mkdir -p /install/lib/python3.7/site-packages
ENV PYTHONPATH .:/install/lib/python3.7/site-packages
RUN apt-get update &&\
apt-get install -y gcc &&\
rm -rf /var/lib/apt/lists/* &&\
apt-get update &&\
apt-get install -y libglib2.0-0 dbus &&\
apt-get install -y libsm6 libxext6 libxrender-dev
RUN mkdir -p /app && chown docker /app
WORKDIR /app
ENV PYTHONPATH ./data:/install/lib/python3.7/site-packages
ENV PYTHONPATH="$PYTHONPATH:/app"
COPY requirements_streamlit.txt requirements_streamlit.txt
RUN pip install --upgrade pip
# Fix SimpleITK stuck on requirements by installing it first
RUN pip install --no-cache-dir SimpleITK
RUN pip install \
--no-cache-dir \
--no-warn-script-location \
-r requirements_streamlit.txt
# SHELL ["/bin/bash", "-c"]
# CMD ['streamlit', 'run', '.\astrowaves\streamlit\dashboard.py', '--', '--path', 'data/Cont_AN_2_4" ']