forked from jxcodetw/docker-jupyter-pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (21 loc) · 788 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
FROM pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel
RUN apt-get update && apt-get install -y --no-install-recommends \
libsm6 \
libxext6 \
libxrender-dev \
ffmpeg && \
rm -rf /var/lib/apt/lists/*
RUN /opt/conda/bin/conda install -y nodejs Cython tensorflow pandas scikit-learn matplotlib seaborn jupyter jupyterlab && \
/opt/conda/bin/conda install -c conda-forge tensorboardx && \
/opt/conda/bin/conda clean -ya
RUN pip install opencv-python
RUN jupyter labextension install jupyterlab_tensorboard
RUN pip install jupyter_tensorboard torchvision scikit-image pydicom openpyxl
RUN mkdir -p /home/me && chmod 1777 /home/me
ENV HOME /home/me
# tensorboard
EXPOSE 6006
# jupyter notebook
EXPOSE 8888
COPY start.sh /
CMD ["/start.sh"]