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