23 lines
583 B
Docker
23 lines
583 B
Docker
ARG DEBIAN_VERSION=12
|
|
|
|
FROM debian:${DEBIAN_VERSION}
|
|
|
|
RUN echo OK && apt update
|
|
|
|
RUN apt install -y openssl nginx bash tzdata ca-certificates wget tar
|
|
|
|
RUN wget https://git.ngtech.co.il/NgTech-LTD/js-dos-pack/archive/master.tar.gz -O /tmp/master.tar.gz && \
|
|
tar xvf /tmp/master.tar.gz -C /var/lib/nginx/html/ && \
|
|
rm -vf /tmp/master.tar.gz
|
|
|
|
COPY default.conf /etc/nginx/http.d/default.conf
|
|
|
|
COPY scripts/gen-self-signed-cert.sh /gen-self-signed-cert.sh
|
|
COPY scripts/start.sh /start.sh
|
|
|
|
WORKDIR /
|
|
|
|
RUN chmod +x /start.sh && rm -vf /var/lib/nginx/html/index.html
|
|
|
|
CMD ["/start.sh"]
|