Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ docker build -f ./golang/Dockerfile . -t golang --no-cache
docker build -f ./java/Dockerfile . -t java --no-cache
docker build -f ./node/Dockerfile . -t node --no-cache
docker build -f ./python/Dockerfile . -t python --no-cache
docker build -f ./ruby/Dockerfile . -t ruby --no-cache
docker build -f ./ruby/Dockerfile . -t ruby --no-cache
docker build -f ./dotnet/Dockerfile . -t dotnet --no-cache
51 changes: 51 additions & 0 deletions dotnet/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
ARG NET_VERSION=6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/sdk:${NET_VERSION}


ARG ROOTHOME=/Users/root

RUN mkdir -p $ROOTHOME
ENV HOME=$ROOTHOME

RUN apt-get update \
&& apt install --force-yes -y ca-certificates curl \
build-essential gcc g++ \
tzdata zip unzip vim wget \
git openssh-client zsh bash net-tools tmux sudo wget \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

# RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.1/zsh-in-docker.sh)" -- \
COPY ./zsh/zsh-in-docker.sh /tmp
RUN chmod +x /tmp/zsh-in-docker.sh && \
/tmp/zsh-in-docker.sh \
-a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"' \
-a 'SPACESHIP_PROMPT_SEPARATE_LINE="false"' \
-p git \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-history-substring-search \
-p https://github.com/zsh-users/zsh-syntax-highlighting \
-p 'history-substring-search' \
-a 'bindkey "\$terminfo[kcuu1]" history-substring-search-up' \
-a 'bindkey "\$terminfo[kcud1]" history-substring-search-down'

# Install the certificate
RUN dotnet dev-certs https --trust

# Modify Timezone
ENV TZ Asia/Shanghai
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Mark zsh as default shell
RUN chsh -s /usr/bin/zsh

# Copy local config to p10k zsh
COPY ./zsh/.p10k.zsh $ROOTHOME/
COPY ./zsh/.tmux.conf $ROOTHOME/

ENTRYPOINT [ "/bin/zsh" ]
CMD ["-l"]