-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.vscode
38 lines (29 loc) · 1.01 KB
/
Dockerfile.vscode
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
38
ARG TF_TAG=2.10.1-gpu
FROM tensorflow/tensorflow:${TF_TAG} as base
ARG VSCODE_TAG=v4.11.0
ENV SHELL=/bin/bash
RUN source /etc/bash.bashrc
RUN apt-get update -y
RUN apt-get install -y zip git graphviz vim
RUN pip install --upgrade pip
RUN pip install --upgrade setuptools
#
# install vscode-server from github
#
WORKDIR /opt
RUN git clone -b ${VSCODE_TAG} https://github.com/coder/code-server.git
WORKDIR /opt/code-server
RUN ./install.sh
#
# install vscode extensions
#
RUN code-server --install-extension ms-python.python
RUN code-server --install-extension ms-toolsai.jupyter
RUN code-server --install-extension ms-toolsai.jupyter-keymap
RUN code-server --install-extension ms-toolsai.jupyter-renderers
RUN code-server --install-extension ms-toolsai.vscode-jupyter-cell-tags
RUN code-server --install-extension ms-toolsai.vscode-jupyter-slideshow
WORKDIR /tf
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
CMD ["bash", "-c", "source /etc/bash.bashrc && code-server --bind-addr 0.0.0.0:8080"]