revert Set correct TimeZone conf
This commit is contained in:
ben
2022-12-29 10:36:08 +01:00
parent 988d7f2e26
commit ce0c25cd9e
6 changed files with 30 additions and 64 deletions

View File

@@ -5,22 +5,16 @@ MAINTAINER BeN
RUN apt-get clean && apt-get update && apt-get -y upgrade
RUN apt-get install -y \
openssh-server \
inetutils-syslogd \
sudo
openssh-server
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN useradd -rm -d /home/ben -s /bin/bash -g 100 -u 1000 ben && \
echo "ben ALL=NOPASSWD: ALL" > /etc/sudoers.d/ben
#RUN echo 'ben:ben' | chpasswd
RUN useradd -rm -d /home/ben -s /bin/bash -g root -G sudo -u 1000 ben
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
COPY src/issue.net /etc/issue.net
COPY src/secure.conf /etc/ssh/sshd_config.d/secure.conf
COPY src/start.sh /start.sh
RUN echo 'ben:ben' | chpasswd
RUN service ssh start
EXPOSE 22
#CMD ["/usr/sbin/sshd","-D", "-e"]
CMD ["/start.sh"]
CMD ["/usr/sbin/sshd","-D"]