Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 1 | ARG UBUNTU_VERSION |
| 2 | |
| 3 | FROM ubuntu:${UBUNTU_VERSION} |
| 4 | |
| 5 | RUN apt-get update \ |
| 6 | && apt-get install -y nginx \ |
| 7 | && rm -rf /var/lib/apt/lists/* |
| 8 | |
| 9 | COPY resources/nginx/nginx_server_mirroring.conf /nginx.conf |
Matus Fabian | 8792e5c | 2024-08-14 12:38:20 +0200 | [diff] [blame] | 10 | COPY script/nginx_server_entrypoint.sh /usr/bin/nginx_server_entrypoint.sh |
Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 11 | |
Matus Fabian | 8792e5c | 2024-08-14 12:38:20 +0200 | [diff] [blame] | 12 | COPY resources/nginx/html/index.html /usr/share/nginx/index.html |
| 13 | RUN fallocate -l 10MB /usr/share/nginx/httpTestFile |
Matus Fabian | 5b175ec | 2024-09-06 15:30:59 +0200 | [diff] [blame] | 14 | RUN mkdir /usr/share/nginx/upload && chmod 777 /usr/share/nginx/upload |
Matus Fabian | 8792e5c | 2024-08-14 12:38:20 +0200 | [diff] [blame] | 15 | |
| 16 | ENTRYPOINT ["nginx_server_entrypoint.sh"] |