Bake frontend version as root during image build
Build and publish frontend / publish (push) Successful in 39s

This commit is contained in:
Ein Anderssono
2026-10-14 09:58:57 +02:00
parent 3d1328301a
commit 85250d62e7
+1
View File
@@ -4,6 +4,7 @@ ARG FRONTEND_VERSION
RUN test -n "$FRONTEND_VERSION"
COPY index.html /usr/share/nginx/html/index.html
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
USER root
RUN sed -i "s/__FRONTEND_VERSION__/${FRONTEND_VERSION}/g" /usr/share/nginx/html/index.html
USER 101