diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile new file mode 100644 index 0000000..de97528 --- /dev/null +++ b/dockerfiles/Dockerfile @@ -0,0 +1,18 @@ +# from custom image +FROM ngx-template:latest + +ARG NET_NAME=kek +ARG CONTAINER_NAME=lol +ARG STATIC_FILE=/usr/share/nginx/html/index.html + +# change default nginx index.html +RUN sed -i '13,21d' $STATIC_FILE && \ + sed -i "13i \ + \ + \ +
NETWORKCONTAINER
$NET_NAME$CONTAINER_NAME
" $STATIC_FILE + +# commented lines don't work +CMD /root/scripts/knocking_setup.sh \ + && nginx && knockd -d && sleep infinity + diff --git a/dockerfiles/Dockerfile_Ngx_Template b/dockerfiles/Dockerfile_Ngx_Template new file mode 100644 index 0000000..728973e --- /dev/null +++ b/dockerfiles/Dockerfile_Ngx_Template @@ -0,0 +1,7 @@ +FROM nginx:latest + +COPY ./scripts/knocking_setup.sh /root/scripts/knocking_setup.sh + +RUN apt update \ + && apt install knockd htop iptables iproute2 vim curl -y + diff --git a/dockerfiles/Dockerfile_visor b/dockerfiles/Dockerfile_visor new file mode 100644 index 0000000..660fac0 --- /dev/null +++ b/dockerfiles/Dockerfile_visor @@ -0,0 +1,6 @@ +FROM ubuntu:latest + +CMD apt update \ + && apt install iproute2 vim curl nmap knockd -y \ + && sleep infinity +