blob: ecb8f590f89f72827d8c4f6cde669cf3d3eed3c3 [file] [log] [blame]
Maros Ondrejickac2f76f42023-02-27 13:22:45 +01001ARG UBUNTU_VERSION
2
3FROM ubuntu:${UBUNTU_VERSION}
4
5RUN apt-get update \
6 && apt-get install -y nginx \
7 && rm -rf /var/lib/apt/lists/*
8
9COPY resources/nginx/nginx_server_mirroring.conf /nginx.conf
Matus Fabian8792e5c2024-08-14 12:38:20 +020010COPY script/nginx_server_entrypoint.sh /usr/bin/nginx_server_entrypoint.sh
Maros Ondrejickac2f76f42023-02-27 13:22:45 +010011
Matus Fabian8792e5c2024-08-14 12:38:20 +020012COPY resources/nginx/html/index.html /usr/share/nginx/index.html
13RUN fallocate -l 10MB /usr/share/nginx/httpTestFile
Matus Fabian5b175ec2024-09-06 15:30:59 +020014RUN mkdir /usr/share/nginx/upload && chmod 777 /usr/share/nginx/upload
Matus Fabian8792e5c2024-08-14 12:38:20 +020015
16ENTRYPOINT ["nginx_server_entrypoint.sh"]