-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
33 lines (24 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM quay.io/centos/centos:stream9
LABEL Maintainer="Robert de Bock <[email protected]>"
LABEL Description="Base CentOS OpenSSH server image"
LABEL CentOS="9"
LABEL OpenSSH="8.7p1"
LABEL Tini="0.19.0"
LABEL Name="CentOS OpenSSH"
LABEL VERSION="2"
LABEL build_date="2024-02-29"
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
EXPOSE 22
# This containers function is specifically to run/test ssh, ignore hints
# about having openssh in a Dockerfile.
# "WARNING: installing SSH in a container is not recommended.
# Do you really need SSH in this image?"
# dockerfile_lint - ignore
RUN yum -y erase vim-minimal iputils libss && \
yum -y install openssh openssh-server openssh-clients && \
yum -y clean all
ADD start.sh /start.sh
RUN chmod +x /start.sh /tini
ENTRYPOINT ["/tini", "-g", "--"]
CMD /start.sh