-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
53 lines (48 loc) · 1.07 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM alpine:3.13
RUN apk --update --no-cache add bash \
busybox-extras \
zsh \
curl \
wget \
bind-tools \
drill \
mtr \
git \
vim \
nano \
iproute2 \
iputils \
htop \
openssh \
nmap \
tmux \
screen \
tar \
xz \
tree \
zip \
unzip \
rsync \
tcpdump \
unrar \
redis \
postgresql-client \
mysql-client \
openssh \
openssl \
&& rm -rf /var/cache/apk/* \
# SSH Setup \
&& ssh-keygen -A \
&& echo -e "engage\nengage" | passwd root
COPY echo-server /echo-server
COPY httpstat-bin /bin/httpstat
COPY ssh_banner /etc/issue.net
COPY motd /etc/motd
COPY run /run.sh
RUN chmod +x /run /bin/httpstat /echo-server/echo-server
# When I fix echo-server to either have certs build in or not require them to start, this will go away.
WORKDIR /echo-server
ENV PORT 80
ENV SSLPORT 443
ENTRYPOINT ["/run.sh"]
CMD ["/echo-server/echo-server & /usr/sbin/sshd -D -e -o PermitRootLogin=yes -o Banner=/etc/issue.net & wait"]