blob: b245b41e1be647c294fe84973a8575ce6d8e3160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
ARG UBUNTU_VERSION=22.04
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"]
|