-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (52 loc) · 5.82 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ghcr.io/linuxserver/code-server:latest
RUN \
apt-get update -qq && \
apt-get upgrade -qq -y && \
apt-get install -qq -y \
apt-transport-https \
ca-certificates \
gnupg \
curl \
sudo; \
\
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \
| sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list; \
\
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -; \
\
apt-get update -qq && \
apt-get upgrade -qq -y && \
apt-get install -qq -y \
google-cloud-sdk \
google-cloud-sdk-gke-gcloud-auth-plugin \
htop \
python3 \
kubectl \
man-db \
mosh \
vim \
wget \
build-essential; \
\
curl -s https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 \
| bash; \
\
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && \
chmod +x /usr/bin/yq; \
\
wget 'https://github.com/cert-manager/cert-manager/releases/latest/download/cmctl-linux-amd64.tar.gz' -O - | \
tar -zxf - -C /usr/bin cmctl; \
\
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; \
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /config/.profile; \
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"; \
\
brew install megatools; \
\
echo 'abc ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/00-abc-nopasswd; \
chmod 0440 /etc/sudoers.d/00-abc-nopasswd; \
mkdir -p /config; \
chown abc:abc /config;
# ports and volumes
EXPOSE 8443