Update Dockerfile

This commit is contained in:
uazo 2021-07-12 19:01:27 +02:00 committed by GitHub
parent de6de42d5f
commit 379ea54578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,6 @@ RUN set -xe && \
RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container
CMD ["/bin/bash"]
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
systemd systemd-sysv libsystemd0 ca-certificates dbus \ systemd systemd-sysv libsystemd0 ca-certificates dbus \
@ -46,6 +44,12 @@ RUN apt-get update && \
/usr/share/doc/* /usr/share/man/* /usr/share/local/* && \ /usr/share/doc/* /usr/share/man/* /usr/share/local/* && \
usermod -a -G docker admin usermod -a -G docker admin
RUN apt-get update && \
apt-get install --no-install-recommends -y \
openssh-server && \
mkdir /home/admin/.ssh && \
chown admin:admin /home/admin/.ssh
# Extra deps # Extra deps
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ RUN apt-get update \
@ -55,3 +59,4 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/list/* && rm -rf /var/lib/apt/list/*
ENTRYPOINT ["/sbin/init" "--log-level=err"] ENTRYPOINT ["/sbin/init" "--log-level=err"]
CMD ["/bin/bash"]