Bake frontend version before dropping privileges
Build and publish frontend / publish (push) Failing after 35s

This commit is contained in:
Ein Anderssono
2026-10-14 09:46:50 +02:00
parent 6335f86f65
commit c5f0364c39
+2
View File
@@ -1,9 +1,11 @@
FROM nginxinc/nginx-unprivileged:1.27-alpine FROM nginxinc/nginx-unprivileged:1.27-alpine
ARG FRONTEND_VERSION ARG FRONTEND_VERSION
USER root
RUN test -n "$FRONTEND_VERSION" \ RUN test -n "$FRONTEND_VERSION" \
&& sed -i "s/__FRONTEND_VERSION__/${FRONTEND_VERSION}/g" /usr/share/nginx/html/index.html && sed -i "s/__FRONTEND_VERSION__/${FRONTEND_VERSION}/g" /usr/share/nginx/html/index.html
COPY nginx/default.conf /etc/nginx/conf.d/default.conf COPY nginx/default.conf /etc/nginx/conf.d/default.conf
USER 101
EXPOSE 8080 EXPOSE 8080