Improved Jenkins docker file
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
FROM debian:13.3-slim
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y openssh-server openjdk-21-jdk
|
||||
RUN mkdir /var/run/sshd
|
||||
|
||||
RUN useradd -m -d /home/jenkins -s /bin/bash jenkins && echo "jenkins:jenkins" | chpasswd
|
||||
EXPOSE 22
|
||||
CMD ["/usr/sbin/sshd","-D"]
|
||||
Reference in New Issue
Block a user