Skip to content

Commit 41f9bc9

Browse files
committed
Run docker image as root so we access to docker socket
1 parent 7093d89 commit 41f9bc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ RUN --mount=type=cache,target=/go/pkg/mod \
3131
############################
3232
# Runtime Stage
3333
############################
34-
FROM gcr.io/distroless/static:nonroot AS runtime
34+
FROM gcr.io/distroless/static AS runtime
3535
LABEL org.opencontainers.image.source="https://github.com/ItsEcholot/StackScout" \
3636
org.opencontainers.image.title="StackScout" \
3737
org.opencontainers.image.description="StackScout monitors your containerized services for available image updates and reports metrics to InfluxDB." \
3838
org.opencontainers.image.licenses="MIT"
3939

4040
WORKDIR /app
4141
COPY --from=builder /out/stackscout /app/stackscout
42-
USER nonroot:nonroot
4342

4443
# Expose no ports (service pushes metrics externally)
4544
ENTRYPOINT ["/app/stackscout"]

0 commit comments

Comments
 (0)