Publish static service version as JSON
Build and publish static assets / publish (push) Successful in 2m28s

This commit is contained in:
Ein Anderssono
2026-10-16 07:35:54 +02:00
parent 43dd54ebfe
commit cc9ee73a5f
6 changed files with 15 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@ COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY public/static/ /usr/share/nginx/html/static/
USER root
RUN printf '%s\n' "$STATIC_VERSION" > /usr/share/nginx/html/static/version.txt && \
printf '{"version":"%s"}\n' "$STATIC_VERSION" > /usr/share/nginx/html/static/version.json && \
chmod -R a+rX /usr/share/nginx/html/static
USER 101
EXPOSE 8080