Fixed create f2b
This commit is contained in:
parent
f2e1f392f2
commit
310e6bc99c
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
FROM crazymax/fail2ban:0.10.4
|
||||
RUN mkdir -p \
|
||||
/etc/f2b
|
||||
COPY . /etc/f2b
|
||||
RUN rm -rf /etc/f2b/Dockerfile \
|
||||
cp -r /etc/f2b/* /etc/fail2ban/ \
|
||||
cp -rf /etc/f2b/* /etc/fail2ban/ \
|
||||
rm -rf /etc/f2b \
|
||||
touch /etc/fail2ban/ip.blacklist \
|
||||
touch /etc/fail2ban/nginx.repeatoffender \
|
||||
|
|
Loading…
Reference in a new issue