Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +41 -15
Dockerfile
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 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 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \
|
| 18 |
-
PORT=7860
|
| 19 |
|
|
|
|
| 20 |
WORKDIR /app
|
| 21 |
COPY . /app
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 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 |
|
|
|
|
| 32 |
RUN apt-get update && \
|
| 33 |
+
apt-get install -y ffmpeg
|
|
|
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
RUN pip install ffmpeg-python
|
| 37 |
+
RUN pip install gputil
|
| 38 |
+
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
# App
|
| 41 |
WORKDIR /app
|
| 42 |
COPY . /app
|
| 43 |
|
| 44 |
+
# Streamlit settings (optional)
|
| 45 |
+
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \
|
| 46 |
+
PYTHONUNBUFFERED=1
|
| 47 |
+
|
| 48 |
+
EXPOSE 8501
|
| 49 |
|
| 50 |
+
# Start the app
|
| 51 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|