Update Dockerfile
This commit is contained in:
@@ -75,11 +75,11 @@ RUN \
|
||||
mkdir -p /root/.ssh && \
|
||||
sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config && \
|
||||
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && \
|
||||
useradd --system --no-log-init --create-home --home-dir /home/myuser --gid root --groups sudo --uid 1001 --shell /bin/bash myuser && \
|
||||
echo 'root:root' | chpasswd && \
|
||||
echo 'myuser:myuser' | chpasswd && \
|
||||
exit 0
|
||||
|
||||
RUN useradd -ms /bin/bash myuser
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
CMD ["/usr/sbin/sshd", "-D", "-e"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user