MarkWrobel commited on
Commit
4b2c23b
·
verified ·
1 Parent(s): dfbf96f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -46
Dockerfile CHANGED
@@ -1,57 +1,25 @@
1
- # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3/.devcontainer/base.Dockerfile
2
-
3
- # [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
4
  FROM tensorflow/tensorflow:2.9.1-gpu
5
- RUN apt-get install libopenexr-dev -y
6
- RUN pip install tensorflow-mri
7
- RUN pip install tqdm
8
- RUN pip install h5py
9
- RUN pip install tensorflow-addons
10
- # RUN pip install sklearn
11
- RUN pip install scikit-image
12
- RUN pip install jupyter
13
- RUN pip install typing_extensions --upgrade
14
- #RUN pip install neptune
15
- #RUN pip install neptune-tensorflow-keras
16
- RUN pip install utils
17
- RUN pip install matplotlib
18
- RUN pip install --upgrade pip
19
- #RUN pip install -U torch-tb-profiler
20
- RUN pip install opencv-python
21
- #RUN pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
22
- RUN pip install gdown==2.3.1
23
- RUN pip install pydicom
24
- RUN pip install scikit-learn
25
- RUN pip install tabulate
26
- RUN pip install pingouin
27
- RUN pip install streamlit
28
- RUN pip install openpyxl
29
- RUN pip install "protobuf<=3.20.3"
30
 
 
31
  RUN apt-get update && \
32
- apt-get install -y ffmpeg
 
33
 
34
- RUN pip install ffmpeg-python
35
- RUN pip install gputil
 
 
 
36
 
 
 
 
 
 
37
 
38
- # App
39
  WORKDIR /app
40
  COPY . /app
41
 
42
- # Streamlit settings (optional)
43
- ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \
44
- PYTHONUNBUFFERED=1
45
-
46
- EXPOSE 8501
47
-
48
- # Start the app
49
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
50
-
51
- ENV PORT=7860 \
52
- STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false \
53
- STREAMLIT_SERVER_ENABLE_CORS=false \
54
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
55
  EXPOSE 7860
56
- CMD ["bash","-lc","streamlit run app.py --server.address=0.0.0.0 --server.port=$PORT"]
57
 
 
 
 
 
 
1
  FROM tensorflow/tensorflow:2.9.1-gpu
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ # --- your apt/pip installs here ---
4
  RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends libopenexr-dev ffmpeg && \
6
+ rm -rf /var/lib/apt/lists/*
7
 
8
+ RUN pip install --upgrade pip
9
+ RUN pip install tensorflow-mri tqdm h5py tensorflow-addons scikit-image jupyter \
10
+ typing_extensions utils matplotlib opencv-python gdown==2.3.1 pydicom \
11
+ scikit-learn tabulate pingouin streamlit openpyxl "protobuf<=3.20.3" \
12
+ ffmpeg-python gputil
13
 
14
+ # --- make sure Streamlit doesn’t block uploads ---
15
+ ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false \
16
+ STREAMLIT_SERVER_ENABLE_CORS=false \
17
+ STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \
18
+ PORT=7860
19
 
 
20
  WORKDIR /app
21
  COPY . /app
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  EXPOSE 7860
 
24
 
25
+ CMD ["bash","-lc","streamlit run app.py --server.address=0.0.0.0 --server.port=$PORT"]