Dockerfile 575 Bytes
Newer Older
Ansgar Burchardt's avatar
Ansgar Burchardt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM quay.io/official-images/debian:11

RUN apt-get update \
    && apt-get install --no-install-recommends --yes \
    acl \
    ca-certificates \
    dbus \
    iproute2 \
    iputils-ping \
    libpam-systemd \
    openssh-server \
    procps \
    python3 \
    python3-apt \
    python3-cryptography \
    systemd \
    && apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/* \
    && rm -f /etc/ssh/ssh_host_*_key* /usr/sbin/policy-rc.d

COPY ssh-keygen.service /etc/systemd/system/
RUN systemctl enable ssh-keygen.service

ENTRYPOINT ["/lib/systemd/systemd"]