docker: provide test image with source

This commit is contained in:
André Roth
2026-06-04 16:26:57 +02:00
parent ddcdc79091
commit 8c1eb49222
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM aptly-dev
ADD --chown=aptly:aptly . /work/src/
# Pre-populate the Go module cache so go mod verify works offline
RUN chown aptly /work/src && mkdir -p /work/src/.go && chown aptly /work/src/.go && \
cd /work/src && sudo -u aptly GOPATH=/work/src/.go GOCACHE=/work/src/.go/cache go mod download