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 | |
COPY script/nginx_server_entrypoint.sh /usr/bin/nginx_server_entrypoint.sh | |
COPY resources/nginx/html/index.html /usr/share/nginx/index.html | |
RUN fallocate -l 10MB /usr/share/nginx/httpTestFile | |
RUN mkdir /usr/share/nginx/upload && chmod 777 /usr/share/nginx/upload | |
ENTRYPOINT ["nginx_server_entrypoint.sh"] |