move Docker-files in ./dockerfile dir
This commit is contained in:
18
dockerfiles/Dockerfile
Normal file
18
dockerfiles/Dockerfile
Normal file
@@ -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 <table>\
|
||||
<tr><th>NETWORK</th><th>CONTAINER</th></tr>\
|
||||
<tr><td>$NET_NAME</td><td>$CONTAINER_NAME</td></tr>\
|
||||
</table>" $STATIC_FILE
|
||||
|
||||
# commented lines don't work
|
||||
CMD /root/scripts/knocking_setup.sh \
|
||||
&& nginx && knockd -d && sleep infinity
|
||||
|
||||
7
dockerfiles/Dockerfile_Ngx_Template
Normal file
7
dockerfiles/Dockerfile_Ngx_Template
Normal file
@@ -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
|
||||
|
||||
6
dockerfiles/Dockerfile_visor
Normal file
6
dockerfiles/Dockerfile_visor
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
CMD apt update \
|
||||
&& apt install iproute2 vim curl nmap knockd -y \
|
||||
&& sleep infinity
|
||||
|
||||
Reference in New Issue
Block a user