gitreef

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2eb7ca38bd4d2906e92871ba267fe7400943316b
parent 615f3d12983804832bd13305a62ceef4f8168e24
Author: Matthias Jaros <jaros@mailbox.org>
Date:   Wed, 29 Oct 2025 20:43:52 +0100

Updated Dockerfile to include variables

Diffstat:
MDockerfile | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,4 +1,8 @@ -FROM alpine:3.22.2 +ARG APP_VERSION +ARG BASE_IMAGE=alpine:3.20 + +FROM ${BASE_IMAGE} as runtime + RUN apk add --no-cache openssh-server fish git sudo # default uid for git user who has access to all repos @@ -24,9 +28,10 @@ ENTRYPOINT ["/usr/local/bin/init"] # license information LABEL org.opencontainers.image.licenses="GPL-3.0-or-later" LABEL org.opencontainers.image.authors="Matthias Jaros" +LABEL org.opencontainers.image.version="${APP_VERSION}" LABEL org.opencontainers.image.source="https://github.com/jarlucmat/git-server" LABEL org.opencontainers.image.url="https://github.com/jarlucmat/git-server" LABEL org.opencontainers.image.title="git-server" LABEL org.opencontainers.image.description="A minimal, secure Git server using SSH and Fish." LABEL org.opencontainers.image.documentation="/usr/share/doc/git-server/LICENSE" -COPY LICENSE /usr/share/doc/git-server/LICENSE -\ No newline at end of file +COPY LICENSE /usr/share/doc/git-server/LICENSE