Add signed runtime distribution pipeline
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# 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
|
||||
RUN chown -R 101:101 /usr/share/nginx/html \
|
||||
&& chmod -R a-w /usr/share/nginx/html /etc/nginx/nginx.conf
|
||||
|
||||
USER 101:101
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT []
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user