This commit is contained in:
Johannes Findeisen 2025-06-08 03:21:58 +02:00
commit 7b24d98abb

View file

@ -12,7 +12,7 @@ WORKDIR /root
# Do this because next steps require some software packages to be installed # Do this because next steps require some software packages to be installed
RUN apk add --no-cache alpine-sdk ca-certificates perl RUN apk add --no-cache alpine-sdk ca-certificates perl
# Install Rust (Copied from the official Rust Dockerfile) # Install Rust (Copied from the official Rust Dockerfile)
RUN set -eux; \ RUN set -eux; \
apkArch="$(apk --print-arch)"; \ apkArch="$(apk --print-arch)"; \
case "$apkArch" in \ case "$apkArch" in \
@ -32,19 +32,17 @@ RUN set -eux; \
rustc --version; rustc --version;
# Install Rust based applications # Install Rust based applications
#RUN git clone --branch v0.7.1 --single-branch https://github.com/boxdot/gurk-rs.git gurk; \ # ...
# cargo build --manifest-path /root/gurk/Cargo.toml --profile release; \
# cp /root/gurk/target/release/gurk /usr/bin/
# Setup environment # Setup environment
RUN apk update; \ RUN apk update; \
apk upgrade --available; \ apk upgrade --available; \
apk add --no-cache bash helix mc openssh shadow tmux vim zsh zsh-vcs neovim apk add --no-cache bash byobu helix mc openssh shadow tmux vim zsh zsh-vcs neovim
RUN chsh -s /bin/zsh root; \ RUN chsh -s /bin/zsh root; \
useradd -M -u 1000 -U -s /bin/zsh -d /home/hanez hanez; \ useradd -M -u 1000 -U -s /bin/zsh -d /home/hanez hanez; \
useradd -M -u 1001 -U -s /bin/bash -d /home/test test; \ useradd -M -u 1001 -U -s /bin/bash -d /home/one one; \
useradd -M -u 1002 -U -s /bin/bash -d /home/test2 test2 useradd -M -u 1002 -U -s /bin/zsh -d /home/two two
# This is obsolete since I use docker-compose for managing the container # This is obsolete since I use docker-compose for managing the container
ENTRYPOINT ["bash"] ENTRYPOINT ["bash"]