2023-02-27 13:22:45 +01:00
|
|
|
ARG UBUNTU_VERSION
|
|
|
|
|
|
|
|
FROM ubuntu:${UBUNTU_VERSION}
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y nginx \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY resources/nginx/nginx_server_mirroring.conf /nginx.conf
|
2024-08-14 12:38:20 +02:00
|
|
|
COPY script/nginx_server_entrypoint.sh /usr/bin/nginx_server_entrypoint.sh
|
2023-02-27 13:22:45 +01:00
|
|
|
|
2024-08-14 12:38:20 +02:00
|
|
|
COPY resources/nginx/html/index.html /usr/share/nginx/index.html
|
|
|
|
RUN fallocate -l 10MB /usr/share/nginx/httpTestFile
|
2024-09-06 15:30:59 +02:00
|
|
|
RUN mkdir /usr/share/nginx/upload && chmod 777 /usr/share/nginx/upload
|
2024-08-14 12:38:20 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["nginx_server_entrypoint.sh"]
|