-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.python
More file actions
23 lines (16 loc) · 906 Bytes
/
Dockerfile.python
File metadata and controls
23 lines (16 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM base-env
RUN sudo apt-get install -y software-properties-common --no-install-recommends
RUN sudo apt-get install -y gnupg2 --no-install-recommends
RUN sudo add-apt-repository ppa:deadsnakes/ppa
RUN sudo apt-get update
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3.9 python3-pip --no-install-recommends
RUN sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
RUN sudo apt-get install -y python3.9 python3-pip python3.9-distutils --no-install-recommends
RUN python3 -m pip install --upgrade pip
RUN pip3 install numpy pandas tensorflow torch icecream tqdm result ipython ruff
RUN code-server --install-extension ms-python.python
RUN code-server --install-extension KevinRose.vsc-python-indent
RUN code-server --install-extension charliermarsh.ruff
RUN code-server --install-extension njpwerner.autodocstring
USER root
CMD ["/usr/sbin/sshd", "-D"]