-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathml.Dockerfile
37 lines (26 loc) · 1.17 KB
/
ml.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
32
33
34
35
36
37
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-devel
RUN apt-get update && apt-get install -y --no-install-recommends \
libsm6 \
libxext6 \
libxrender-dev \
ffmpeg && \
rm -rf /var/lib/apt/lists/*
# git cmake
RUN /opt/conda/bin/conda install -y pandas scikit-learn matplotlib seaborn jupyter jupyterlab && \
/opt/conda/bin/conda install -c conda-forge tensorboardx && \
/opt/conda/bin/conda clean -ya
# RUN /opt/conda/bin/conda install -y nodejs opencv 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 jupyter labextension install jupyterlab_tensorboard
RUN pip install jupyter_tensorboard torchvision scikit-image streamlit
RUN mkdir -p /home/ml && chmod 1777 /home/ml
ENV HOME /home/ml
RUN pip install transformers sentencepiece
# # tensorboard
EXPOSE 6006
# # jupyter notebook
EXPOSE 8888
ENV JUPYTER_ALLOW_INSECURE_WRITES 1
CMD ["/bin/bash", "-c", "echo jupyter tensorboard enable --user;echo jupyter lab --no-browser --ip=0.0.0.0 --port=8888"]
#jupyter notebook --allow-root --ip=0.0.0.0 --port=8888