Set correct TimeZone conf

This commit is contained in:
ben
2022-12-28 14:19:03 +01:00
parent 6d2e35dddf
commit 988d7f2e26
6 changed files with 64 additions and 30 deletions

View File

@@ -5,16 +5,22 @@ MAINTAINER BeN
RUN apt-get clean && apt-get update && apt-get -y upgrade
RUN apt-get install -y \
openssh-server
openssh-server \
inetutils-syslogd \
sudo
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 useradd -rm -d /home/ben -s /bin/bash -g root -G sudo -u 1000 ben
#RUN echo 'ben:ben' | chpasswd
RUN echo 'ben:ben' | chpasswd
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 service ssh start
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]
#CMD ["/usr/sbin/sshd","-D", "-e"]
CMD ["/start.sh"]