mirror of
https://github.com/zplug/zplug
synced 2026-03-06 22:21:43 +01:00
Remove the practice of copying ~/.ssh into the Docker image, which baked private keys into image layers. HTTPS (the default protocol) is sufficient for testing.
21 lines
439 B
Docker
21 lines
439 B
Docker
FROM ubuntu:noble
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y locales build-essential openssh-server git vim zsh tmux curl unzip sudo && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
RUN groupadd -g 1000 zplug && \
|
|
useradd -g zplug -G sudo -m -s /bin/zsh zplug && \
|
|
echo 'zplug:zplug' | chpasswd
|
|
|
|
ADD . /home/zplug/.zplug
|
|
|
|
RUN chown -R zplug:zplug /home/zplug
|
|
|
|
USER zplug
|
|
WORKDIR /home/zplug
|
|
|
|
CMD ["/bin/zsh"]
|