-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (41 loc) · 2.42 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
# vim: sw=4 et
FROM fedora:40
RUN set -ex \
&& dnf update --refresh --assumeyes
RUN set -ex \
&& dnf groupinstall --assumeyes "C Development Tools and Libraries" "GNOME Software Development"
RUN set -ex \
&& dnf install --assumeyes python2 python3 python3-pip git curl wget zip vim autoconf213 nodejs which npm python2-devel python3-devel redhat-rpm-config alsa-lib-devel dbus-glib-devel glibc-static gtk2-devel libstdc++-static libXt-devel nasm pulseaudio-libs-devel yasm gcc-c++ mercurial perl perl-FindBin watchman perl-JSON-PP openssl-devel
RUN set -ex \
&& dnf --assumeyes install acl bind-utils coreutils curl findutils git htop iftop iotop iptables logrotate mlocate ncdu neovim NetworkManager-tui python3 redhat-lsb-core rsync sudo sqlite tmux util-linux-user vim wget which zsh zsh-autosuggestions zsh-syntax-highlighting zstd python3-pyyaml python3-rich ripgrep langpacks-en
WORKDIR /src
RUN wget https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -O /src/bootstrap.py
ENV SHELL=/usr/bin/zsh
ENV PATH="/root/bin:$PATH"
ENV MOZCONFIG="/src/mozconfig"
ENV LANGUAGE="en_US.UTF-8"
ENV LC_ALL="en_US.UTF-8"
# install CompileNix dotfiles
RUN set -ex \
&& mkdir -pv /root/.config/dotfiles/compilenix \
&& echo -e "enable_hush_login: true\nlink_desktop_software_configs: false\nlink_fonts: false" >/root/.config/dotfiles/compilenix/config.yml \
&& wget https://git.compilenix.org/CompileNix/dotfiles/-/raw/main/install.sh && chmod +x install.sh && ./install.sh && rm -f install.sh \
&& echo "SPACESHIP_BATTERY_SHOW=false" >>/root/.zshrc.env \
&& echo "SPACESHIP_GIT_SHOW=false" >>/root/.zshrc.env \
&& echo "SPACESHIP_GRADLE_SHOW=false" >>/root/.zshrc.env \
&& echo "ENABLE_ZSH_ASYNC_UPDATE_CHECK=false" >>/root/.zshrc.env \
&& echo "export PATH=\"/src/bin:$PATH\"" >>/root/.zshrc_include \
&& echo "export MOZCONFIG=/src/mozconfig" >>/root/.zshrc_include \
&& echo "export LANGUAGE=en_US.UTF-8" >>/root/.zshrc_include \
&& echo "export LC_ALL=en_US.UTF-8" >>/root/.zshrc_include
# install rust
RUN set -ex \
&& curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs >install-rust.sh \
&& sh install-rust.sh -y \
&& rm install-rust.sh
RUN set -ex \
&& source "/root/.cargo/env" \
&& cargo install sccache --locked \
&& echo "export RUSTC_WRAPPER=\"/root/.cargo/bin/sccache\"" >>/root/.zshrc_include
COPY src/* bin/
CMD [ "/usr/bin/zsh" ]