Update Dockerfile
Browse files- Dockerfile +51 -59
Dockerfile
CHANGED
|
@@ -1,59 +1,51 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
RUN
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
#
|
| 20 |
-
RUN
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
RUN pip install
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
RUN pip install
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
#
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
'toolbarMode = "minimal"' \
|
| 53 |
-
"[browser]" \
|
| 54 |
-
"gatherUsageStats = false" \
|
| 55 |
-
> /app/.streamlit/config.toml
|
| 56 |
-
|
| 57 |
-
# ----- Entrypoint -----
|
| 58 |
-
EXPOSE 7860
|
| 59 |
-
CMD ["bash","-lc","python -m streamlit run app.py --server.port ${PORT:-7860}"]
|
|
|
|
| 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 |
+
# Create non-root user.
|
| 33 |
+
ARG USERNAME=vscode
|
| 34 |
+
ARG USER_UID=1003
|
| 35 |
+
ARG USER_GID=$USER_UID
|
| 36 |
+
|
| 37 |
+
RUN groupadd --gid $USER_GID $USERNAME && \
|
| 38 |
+
useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && \
|
| 39 |
+
# Add user to sudoers.
|
| 40 |
+
apt-get update && \
|
| 41 |
+
apt-get install -y sudo && \
|
| 42 |
+
echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \
|
| 43 |
+
chmod 0440 /etc/sudoers.d/$USERNAME && \
|
| 44 |
+
# Change default shell to bash.
|
| 45 |
+
usermod --shell /bin/bash $USERNAME
|
| 46 |
+
|
| 47 |
+
RUN apt-get update && \
|
| 48 |
+
apt-get install -y ffmpeg
|
| 49 |
+
|
| 50 |
+
RUN pip install ffmpeg-python
|
| 51 |
+
RUN pip install gputil
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|