final version
This commit is contained in:
@@ -5,6 +5,8 @@ ARG NET_NAME=kek
|
||||
ARG CONTAINER_NAME=lol
|
||||
ARG STATIC_FILE=/usr/share/nginx/html/index.html
|
||||
|
||||
COPY ./scripts/.env /root/scripts/.env
|
||||
|
||||
# change default nginx index.html
|
||||
RUN sed -i '13,21d' $STATIC_FILE && \
|
||||
sed -i "13i <table>\
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
FROM nginx:latest
|
||||
|
||||
COPY ./scripts/knocking_setup.sh /root/scripts/knocking_setup.sh
|
||||
COPY ./scripts/.env /root/scripts/.env
|
||||
|
||||
WORKDIR /root/scripts/
|
||||
|
||||
RUN apt update \
|
||||
&& apt install knockd htop iptables iproute2 vim curl -y
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
COPY ./scripts/.env /root/scripts/.env
|
||||
COPY ./scripts/block_port.sh /root/scripts/block_port.sh
|
||||
|
||||
WORKDIR /root/scripts/
|
||||
|
||||
CMD apt update \
|
||||
&& apt install iproute2 vim curl nmap knockd -y \
|
||||
&& sleep infinity
|
||||
|
||||
Reference in New Issue
Block a user