From 85250d62e7f156233b77512251a16d20c68baa82 Mon Sep 17 00:00:00 2001 From: Ein Anderssono Date: Wed, 14 Oct 2026 09:58:57 +0200 Subject: [PATCH] Bake frontend version as root during image build --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 5e78532..8869aee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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