-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 802 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 802 Bytes
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
FROM phusion/baseimage:master-amd64
MAINTAINER MarkusMcNugen
# Forked from atmoz for unRAID
VOLUME /config
# Steps done in one RUN layer:
# - Install packages
# - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys
RUN apt-get update && \
apt-get upgrade -y && \
apt-get -y install openssh-server fail2ban iptables && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/run/sshd && \
rm -f /etc/ssh/ssh_host_*key*
COPY entrypoint /
RUN chmod +x /entrypoint && \
mkdir -p /etc/default/sshd && \
mkdir -p /etc/default/f2ban
COPY fail2ban/jail.conf /etc/default/f2ban/jail.conf
COPY sshd/sshd_config /etc/default/sshd/sshd_config
COPY syslog-ng/syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
EXPOSE 22
ENTRYPOINT ["/entrypoint"]