-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathubuntu-jammy-desktop.Dockerfile
39 lines (32 loc) · 1.16 KB
/
ubuntu-jammy-desktop.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
FROM docker.io/kasmweb/ubuntu-jammy-desktop:%VER%-rolling-weekly
ARG TARGETARCH
USER root
RUN apt update && apt install -y sudo curl jq wget build-essential python3 python3-pip wireguard openresolv jq libfuse2 libxi6 libxrender1 libxtst6 mesa-utils libfontconfig libgtk-3-bin
RUN echo "#1000 ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
WORKDIR /tmp
# https://hub.docker.com/r/rustlang/rust/dockerfile
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
USER=root \
PATH=/usr/local/cargo/bin:$PATH
# install rust
RUN set -eux; \
\
url="https://sh.rustup.rs"; \
wget "$url" -O rustup-init; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
rustup --version; \
cargo --version; \
rustc --version;
# install 1password
RUN if [ "$TARGETARCH" = "amd64" ]; then \
wget https://downloads.1password.com/linux/debian/amd64/stable/1password-latest.deb && sudo apt install ./1password-latest.deb -y; \
fi
USER 1000
# install ZSH
RUN sh -c "$(curl -fsSL https://thmr.at/setup/zsh)"
RUN sudo usermod -s /bin/zsh kasm-user
WORKDIR /home/kasm-user