From ef0ba5ad54494a5f319642cf123058e8ccd15086 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 29 Mar 2023 07:30:26 +0000 Subject: [PATCH] Print little-things version on build --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 82bd366..9d4f960 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM python:3.11-alpine COPY codearchiver-bot /app/codearchiver-bot RUN apk add --no-cache bash coreutils curl git sed zstd -RUN git clone https://gitea.arpa.li/JustAnotherArchivist/little-things.git /app/little-things/ +RUN git clone https://gitea.arpa.li/JustAnotherArchivist/little-things.git /app/little-things/ \ + && (cd /app/little-things/ && git rev-parse HEAD) RUN pip install --no-cache-dir codearchiver VOLUME /data WORKDIR /data