This commit is contained in:
2024-09-08 11:14:05 +03:00
parent 6ebd9713d0
commit a145ef8d59
4 changed files with 7 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ FROM debian:${VARIANT}
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
ca-certificates \
zsh \
vim \
tmux \
@@ -11,13 +12,14 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/zsh dev
RUN useradd --system --create-home --shell=/bin/zsh --groups=sudo dev
RUN mkdir /workspace && chown -R dev:dev /workspace
USER dev
RUN mkdir /home/dev/_app
RUN git clone https://gitea.tomastm.com/tomas.mirchev/dotfiles.git ~/.dotfiles
RUN ~/.dotfiles/install.sh
SHELL ["/bin/zsh", "-c"]
WORKDIR /home/dev/_app
WORKDIR /workspace
ENV w=/workspace
CMD ["zsh"]