remove Dockerfile_Ngx_Template & Dockerfile

This commit is contained in:
2024-10-28 00:44:26 +03:00
parent c06186d323
commit f4f2239c3b
2 changed files with 0 additions and 25 deletions

View File

@@ -1,18 +0,0 @@
# 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

View File

@@ -1,7 +0,0 @@
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