From 9133b904316feace92e197bc5532520df47e8563 Mon Sep 17 00:00:00 2001 From: lotherk Date: Fri, 27 Mar 2026 15:04:46 +0000 Subject: [PATCH] v0.1.3: Add VERSION to website build --- Dockerfile.website | 5 +++++ www/index.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile.website b/Dockerfile.website index b1b593a..2acfb1c 100644 --- a/Dockerfile.website +++ b/Dockerfile.website @@ -1,3 +1,6 @@ +FROM alpine:latest AS version +COPY VERSION.txt /tmp/version.txt + FROM node:20-alpine AS builder WORKDIR /app/www @@ -8,6 +11,8 @@ COPY www/ ./ RUN node build-blog.js FROM nginx:alpine +COPY --from=version /tmp/version.txt /tmp/version.txt +ENV VERSION=$(cat /tmp/version.txt) COPY --from=builder /app/www/ /usr/share/nginx/html/ COPY docker-entrypoint.d/ /docker-entrypoint.d/ diff --git a/www/index.html b/www/index.html index 146116d..3402386 100644 --- a/www/index.html +++ b/www/index.html @@ -34,7 +34,7 @@ Read Docs
- v0.1.1 + v${VERSION} Git Repository