• Joined on 2025-01-01

docker-image-dev-dotnet (ae3bbb7)

Published 2025-08-03 23:30:26 +07:00 by ebolo

Installation

docker pull pikachu-gitea.duydao.org/ebolo/docker-image-dev-dotnet:ae3bbb7
sha256:ca961f40cd331b477593d9c3d2d834864f365d0e62c299144638120d7c715dae

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=24.04
ADD file:98599296b3845cfad0ddc91f054e32ed9bcdefd76dd7b6dcf64fa3e2d648d018 in /
CMD ["/bin/bash"]
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates libc6 libgcc-s1 libicu74 libssl3t64 libstdc++6 tzdata tzdata-legacy && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c groupadd --gid=$APP_UID app && useradd --no-log-init --uid=$APP_UID --gid=$APP_UID --create-home app # buildkit
ENV DOTNET_VERSION=9.0.7
COPY /dotnet /usr/share/dotnet # buildkit
RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit
ENV ASPNET_VERSION=9.0.7
COPY /dotnet /usr/share/dotnet # buildkit
ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false DOTNET_NOLOGO=true DOTNET_SDK_VERSION=9.0.303 DOTNET_USE_POLLING_FILE_WATCHER=true NUGET_XMLDOC_MODE=skip POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Ubuntu-24.04
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl git libatomic1 wget && rm -rf /var/lib/apt/lists/* # buildkit
COPY /dotnet /usr/share/dotnet # buildkit
RUN /bin/sh -c dotnet help # buildkit
RUN /bin/sh -c powershell_version=7.5.2 && curl --fail --show-error --location --output PowerShell.Linux.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.x64.$powershell_version.nupkg && powershell_sha512='fb7ae1d7e6f046596159e5d2888c8868b7bc91664e9b2525a84399dcc2ebda755866d9c347a3aeec81b11ad52c83b02f58fab0571489663dcda25d1ba13de46f' && echo "$powershell_sha512 PowerShell.Linux.x64.$powershell_version.nupkg" | sha512sum -c - && mkdir --parents /usr/share/powershell && dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.x64 && dotnet nuget locals all --clear && rm PowerShell.Linux.x64.$powershell_version.nupkg && ln -s /usr/share/powershell/pwsh /usr/bin/pwsh && chmod 755 /usr/share/powershell/pwsh && find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm # buildkit
USER root
ENV DEBIAN_FRONTEND=noninteractive
COPY ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources # buildkit
RUN /bin/sh -c echo 'Acquire::https::Verify-Peer "false";' > /etc/apt/apt.conf.d/99verify-peer.conf # buildkit
RUN /bin/sh -c apt-get update && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y --no-install-recommends software-properties-common zsh ca-certificates curl wget git nano iputils-ping openssh-client build-essential net-tools jq lsd locales sudo unzip xz-utils zip libglu1-mesa tmux vim lsof nodejs && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c install -m 0755 -d /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && chmod a+r /etc/apt/keyrings/docker.asc && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && apt-get update && apt-get install -y docker-ce-cli docker-compose-plugin # buildkit
RUN /bin/sh -c locale-gen vi_VN.UTF-8 # buildkit
RUN /bin/sh -c userdel -r ubuntu && useradd developer --create-home --shell=/bin/zsh --uid=1000 --user-group && echo "developer ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd && groupadd docker && usermod -aG docker developer # buildkit
USER developer
ENV TERM=xterm
ENV EDITOR=vim
RUN /bin/sh -c cd && git clone --single-branch https://github.com/gpakosz/.tmux.git && ln -s -f .tmux/.tmux.conf && cp .tmux/.tmux.conf.local . && sudo npm install -g @anthropic-ai/claude-code # buildkit
ENV TZ=Asia/Ho_Chi_Minh
ENV LC_ALL=vi_VN.UTF-8
RUN /bin/sh -c sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && zsh -c "$(curl -fsSL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh)" "" --unattended && echo 'export ZPLUG_HOME=/home/developer/.zplug' | tee -a ~/.zshrc && echo 'source $ZPLUG_HOME/init.zsh' | tee -a ~/.zshrc && echo 'zplug "mafredri/zsh-async", from:github' | tee -a ~/.zshrc && echo 'zplug "zsh-users/zsh-autosuggestions", as:plugin, defer:2' | tee -a ~/.zshrc && echo 'zplug "zdharma/fast-syntax-highlighting", as:plugin, defer:2' | tee -a ~/.zshrc && echo 'zplug load' | tee -a ~/.zshrc && echo 'if ! zplug check --verbose; then' | tee -a ~/.zshrc && echo ' printf "Install? [y/N]: "' | tee -a ~/.zshrc && echo ' if read -q; then' | tee -a ~/.zshrc && echo ' echo; zplug install' | tee -a ~/.zshrc && echo ' fi' | tee -a ~/.zshrc && echo 'fi' | tee -a ~/.zshrc && echo 'alias ls="lsd"' | tee -a ~/.zshrc && echo 'eval "$(starship init zsh)"' | tee -a ~/.zshrc && echo 'export PATH="$PATH:/root/.dotnet/tools:$HOME/.dotnet/tools"' | tee -a ~/.zshrc && dotnet tool install -g dotnet-reportgenerator-globaltool && dotnet tool install -g dotnet-ef && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && echo >> /home/developer/.zshrc && echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/developer/.zshrc && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && curl -fsSL https://starship.rs/install.sh | sh -s -- -y && brew install zellij && brew install gemini-cli && brew install kubernetes-cli && brew install minikube && brew install helm && brew install k9s && brew install istioctl && mkdir /home/developer/code # buildkit
WORKDIR /home/developer/

Labels

Key Value
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 24.04
Details
Container
2025-08-03 23:30:26 +07:00
0
OCI / Docker
linux/amd64
1.5 GiB
Versions (19) View all
0 2025-08-03
ae3bbb7 2025-08-03
0.0 2025-08-03
latest 2025-08-03
0.0.1 2025-08-03