ARG NGINX_VERSION=stable FROM nginx:${NGINX_VERSION}-alpine COPY nginx.conf /etc/nginx/ COPY conf.d/ /etc/nginx/conf.d/ COPY srv/ /srv/ ADD h5ai-0.30.0.tar.gz /srv/http/files/ RUN ["find", "/srv/http/files/_h5ai", "-type", "d", "-exec", "chmod", "a+x", "{}", "+"] RUN ["chmod", "-R", "a+rw", "/srv/http/files/_h5ai"] VOLUME ["/etc/nginx", "/srv/http"]