js-dos-pack/docker/nginx/Dockerfile

26 lines
618 B
Docker
Raw Normal View History

2023-11-06 22:40:14 +02:00
ARG ALPINE_VERSION=3.18
2023-11-06 23:25:51 +02:00
ARG TARGETOS
ARG TARGETARCH
2023-11-06 22:40:14 +02:00
2023-11-06 23:25:51 +02:00
FROM alpine:${ALPINE_VERSION}
RUN echo OK && apk update
RUN apk add --no-cache 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
2023-11-06 22:40:14 +02:00
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 /
2023-11-06 23:25:51 +02:00
RUN chmod +x /start.sh && rm -vf /var/lib/nginx/html/index.html
2023-11-06 22:40:14 +02:00
CMD ["/start.sh"]