manual ln
This commit is contained in:
@@ -8,17 +8,31 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
vim \
|
||||
tmux \
|
||||
curl \
|
||||
unzip \
|
||||
git \
|
||||
python3 \
|
||||
build-essential \
|
||||
libssl-dev \
|
||||
sudo \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN useradd --system --create-home --shell=/bin/zsh --groups=sudo dev
|
||||
RUN mkdir /workspace && chown -R dev:dev /workspace
|
||||
USER dev
|
||||
ARG USERNAME=dev
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=$USER_UID
|
||||
|
||||
RUN groupadd --gid $USER_GID $USERNAME \
|
||||
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
|
||||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
||||
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
||||
|
||||
RUN mkdir /workspace && chown -R $USERNAME:$USERNAME /workspace
|
||||
USER $USERNAME
|
||||
|
||||
RUN git clone https://gitea.tomastm.com/tomas.mirchev/dotfiles.git ~/.dotfiles
|
||||
RUN ~/.dotfiles/install.sh
|
||||
|
||||
SHELL ["/bin/zsh", "-c"]
|
||||
WORKDIR /workspace
|
||||
ENV w=/workspace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user