forked from robertdebock/docker-centos-openssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (14 loc) · 612 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
FROM centos:7.3.1611
MAINTAINER Robert de Bock <[email protected]>
LABEL Description="Base CentOS OpenSSH server image" CentOS="7.3.1611" OpenSSH="6.6.1p1-33.el7_3" Tini="0.14.0" Name="CentOS OpenSSH" VERSION="1"
ENV TINI_VERSION v0.14.0
#ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
EXPOSE 5555
RUN yum -y erase vim-minimal yum-plugin-ovl 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
RUN chmod +x /start.sh
#ENTRYPOINT ["/tini", "-g", "--"]
CMD /start.sh