# syntax=docker/dockerfile:1.7 ARG NGINX_IMAGE FROM ${NGINX_IMAGE} ARG GOVOPLAN_RELEASE_VERSION ARG GOVOPLAN_COMPOSITION_SHA256 LABEL org.opencontainers.image.title="GovOPlaN WebUI runtime" \ org.opencontainers.image.version="${GOVOPLAN_RELEASE_VERSION}" \ org.govoplan.composition.sha256="${GOVOPLAN_COMPOSITION_SHA256}" USER 0 RUN rm -rf /usr/share/nginx/html/* /etc/nginx/conf.d/* COPY web-dist/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/nginx.conf.template COPY web-entrypoint.sh /usr/local/bin/govoplan-web-entrypoint RUN chown -R 101:101 /usr/share/nginx/html \ && chmod -R a-w /usr/share/nginx/html /etc/nginx/nginx.conf.template \ && chmod 0555 /usr/local/bin/govoplan-web-entrypoint USER 101:101 EXPOSE 8080 ENTRYPOINT ["/usr/local/bin/govoplan-web-entrypoint"] CMD []