
Type: test Change-Id: Id6b4e2348735081c827f814a814c976b601432ec Signed-off-by: Matus Fabian <matfabia@cisco.com>
17 lines
504 B
Docker
17 lines
504 B
Docker
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"]
|