-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy pathDockerfile
38 lines (34 loc) · 1.38 KB
/
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
34
35
36
37
38
FROM debian:stretch-20171009
MAINTAINER [email protected]
# Install openssh server
RUN apt-get update \
&& apt-get install -y upx-ucl binutils curl openssh-server git jq \
&& curl -o /tmp/docker-19.03 'https://download.docker.com/linux/static/stable/x86_64/docker-19.03.8.tgz' \
&& tar -xf /tmp/docker-19.03 -C /tmp \
&& mv /tmp/docker/docker /bin/docker \
&& rm -rf /tmp/docker-19.03 /tmp/docker \
&& strip --strip-unneeded /bin/docker \
&& chmod a+x /bin/docker \
&& upx /bin/docker \
&& curl -o /bin/kubectl 'https://storage.googleapis.com/kubernetes-release/release/v1.17.4/bin/linux/amd64/kubectl' \
&& strip --strip-unneeded /bin/kubectl \
&& chmod a+x /bin/kubectl \
&& upx /bin/kubectl \
&& curl -o /tmp/helm.tar.gz 'https://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz' \
&& tar -xzf /tmp/helm.tar.gz -C /tmp \
&& mv /tmp/linux-amd64/helm /bin/helm \
&& rm -rf /tmp/helm.tar.gz /tmp/linux-amd64 \
&& strip --strip-unneeded /bin/helm \
&& chmod a+x /bin/helm \
&& upx /bin/helm \
&& curl -o /usr/bin/mo 'https://raw.githubusercontent.com/tests-always-included/mo/master/mo' \
&& chmod a+x /usr/bin/mo \
&& apt-get purge -y --auto-remove upx-ucl binutils \
&& rm -rf /var/lib/apt/lists/*
# sshd config
RUN mkdir /var/run/sshd
ADD no-interactive-login.sh /sshd-lib/
ADD pre_receive.sh /sshd-lib/
ADD sshd_config /sshd-lib/
ADD start_sshd.sh /sshd-lib/
EXPOSE 22