helm/code-ssh/Dockerfile

12 lines
427 B
Docker
Raw Normal View History

2022-08-15 00:29:50 +00:00
FROM debian:stable-slim
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y zsh dropbear-bin python3 python3-pip python3-virtualenv vim sudo curl git && \
mkdir -p /etc/dropbear && \
useradd -s /bin/zsh -u 1000 coder && \
echo 'coder ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers && \
apt-get clean
CMD [ "/usr/sbin/dropbear", "-swEF" ]