This commit is contained in:
2026-09-01 06:31:41 +02:00
parent ad54651558
commit 695ac8a713
14 changed files with 621 additions and 13 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ ARG BUILD_DATE=unknown
COPY go.mod ./
RUN --mount=type=cache,target=/go/pkg/mod go mod download
COPY . .
RUN test -f ./cmd/dockwatch/main.go && test -f ./internal/stacks/stacks.go && test -f ./web/embed.go || \
RUN test -f ./cmd/dockwatch/main.go && test -f ./internal/stacks/stacks.go && test -f ./internal/hostsecurity/security.go && test -f ./web/embed.go || \
(echo "ERROR: required source files are missing from Docker build context; check .dockerignore" >&2; exit 1)
# Keep the module graph in sync with the actual source tree. This is required for
# Go 1.17+ module graph pruning when transitive dependencies must be recorded as
@@ -21,7 +21,7 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache
FROM docker:cli
ENV DOCKER_CONFIG=/data/docker-config
RUN apk add --no-cache ca-certificates tzdata git openssh-client acl
RUN apk add --no-cache ca-certificates tzdata git openssh-client acl util-linux
COPY --from=build /out/dockwatch /usr/local/bin/dockwatch
VOLUME ["/data","/stacks"]
EXPOSE 8080