-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (43 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
50 lines (43 loc) · 1.26 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
FROM ubuntu:20.04
ENV HOME /root
ENV USER /root
ARG DEBIAN_FRONTEND=noninteractive
# install basic
RUN apt-get update && yes | apt-get install \
build-essential \
libssl-dev \
curl \
git \
make \
gcc \
apt-transport-https \
ca-certificates \
gnupg \
bash-completion \
apt-utils \
rsync \
python \
python3 \
python3-distutils \
unzip \
vim \
zsh \
protobuf-compiler \
wget \
sudo
## install cmake 3.20
RUN cd /tmp && wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz && tar -zxvf cmake-3.20.0.tar.gz
RUN cd /tmp/cmake-3.20.0 && ./bootstrap && make -j4 && make install
## install Go 1.17.4
RUN curl -LO https://storage.googleapis.com/golang/go1.17.4.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.17.4.linux-amd64.tar.gz
## install docker
RUN curl -fsSL https://get.docker.com -o get-docker.sh
RUN sh get-docker.sh
## Uses "robbyrussell" theme with some customization. Uses some bundled plugins and installs some more from github
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.2/zsh-in-docker.sh)" -- \
-t robbyrussell \
-p git \
-p ssh-agent \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions