-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·90 lines (77 loc) · 2.61 KB
/
Dockerfile
File metadata and controls
executable file
·90 lines (77 loc) · 2.61 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
ENV LC_ALL=C
ENV LIMIT=""
#"-o Acquire::http::Dl-Limit=400 -o Acquire::https::Dl-Limit=400"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Set up the user
ENV UNAME docker
RUN useradd -m $UNAME || true && echo "$UNAME:$UNAME" | chpasswd && adduser $UNAME sudo
RUN mkdir -p /etc/sudoers.d && \
echo "$UNAME ALL=(ALL) ALL" > /etc/sudoers.d/$UNAME && \
chmod 0440 /etc/sudoers.d/$UNAME && \
chown ${UID}:${GID} -R /home/$UNAME
WORKDIR /home/${UNAME}/
#Install the packages
RUN apt-get $LIMIT update -yq \
&& apt-get $LIMIT install -y locales locales-all -yq \
&& apt-get $LIMIT install ssh -yq \
&& apt-get $LIMIT install x11-apps -yq \
&& apt-get $LIMIT install sudo -yq \
&& apt-get $LIMIT install fdisk -yq \
&& apt-get $LIMIT install gparted -yq \
&& apt-get $LIMIT install net-tools -yq \
&& apt-get $LIMIT install iputils-ping -yq \
&& apt-get $LIMIT install iptables -yq \
&& apt-get $LIMIT install nano -yq \
&& apt-get $LIMIT install ubuntu-restricted-addons -yq \
&& apt-get $LIMIT install ubuntu-restricted-extras -yq \
&& apt-get $LIMIT install firefox -yq \
&& apt-get $LIMIT install evince -yq \
&& apt-get $LIMIT install default-jdk -yq \
&& apt-get $LIMIT install git -yq \
&& apt-get $LIMIT install python3-pip -yq \
&& apt-get $LIMIT install cmake libncurses5-dev libncursesw5-dev -yq \
&& apt $LIMIT install libcanberra-gtk-module libcanberra-gtk3-module -yq \
&& apt $LIMIT install wimtools -yq \
&& apt $LIMIT install software-properties-common -yq \
&& apt-get $LIMIT update -yq \
&& apt-get $LIMIT dist-upgrade -yq \
&& apt-get clean -yq \
&& rm -rf /var/lib/apt/lists/* \
&& python3 -m pip install --upgrade pip\
&& python3 -m pip install Pillow\
&& python3 -m pip install scipy\
&& python3 -m pip install jupyter\
&& python3 -m pip install ipywidgets\
&& python3 -m pip install numpy \
&& python3 -m pip install matplotlib\
&& python3 -m pip install pandas
RUN pip3 install \
pybind11 \
numpy \
Cython \
h5py \
tensorflow \
tensorflow-datasets\
torch torchvision torchaudio
#ADD ./atom ./atom
#ADD ./vscode ./vscode
#ADD ./atom/.bashrc ./.bashrc
#Install Atom
#RUN apt-get $LIMIT update -yq \
#&& dpkg -i ./atom/atom-arm64.deb \
#|| true \
#&& apt --fix-broken install -yq \
#&& dpkg -i ./atom/atom-amd64.deb \
#&& apt-get clean -yq \
#&& rm -rf /var/lib/apt/lists/*
#Install VSCode
#RUN apt-get $LIMIT update -yq \
#&& dpkg -i ./vscode/code-arm64.deb \
#|| true \
#&& apt --fix-broken install -yq \
#&& dpkg -i ./vscode/code-arm64.deb \
#&& apt-get clean -yq \
#&& rm -rf /var/lib/apt/lists/*