nginx/test/examples/Dockerfile
phracek fa41e110a6 Merge pull request #202 from sclorg/support_testing_rhel9
Add support for testing nginx on RHEL9
2022-06-14 08:52:46 +00:00

12 lines
536 B
Docker

FROM registry.access.redhat.com/ubi8/nginx-118
ENV NGINX_VERSION=1.18
# Add application sources
ADD nginx-container/examples/$NGINX_VERSION/test-app/nginx.conf "${NGINX_CONF_PATH}"
ADD nginx-container/examples/$NGINX_VERSION/test-app/nginx-default-cfg/*.conf "${NGINX_DEFAULT_CONF_PATH}"
ADD nginx-container/examples/$NGINX_VERSION/test-app/nginx-cfg/*.conf "${NGINX_CONFIGURATION_PATH}"
ADD nginx-container/examples/$NGINX_VERSION/test-app/*.html ./
# Run script uses standard ways to run the application
CMD nginx -g "daemon off;"