Skip to content

Commit

Permalink
docker changes test
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioSCX committed Jul 29, 2024
1 parent e701436 commit e39b2da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM cgr.dev/chainguard/go@sha256:74bc9af1d45fd1c8d432a89148c5e413711204636b54ca

RUN adduser -u 1000 -h home/kics -s bin/bash -D kics

RUN chown -hR kics /app/
USER kics

# Copy the source from the current directory to the Working Directory inside the container
WORKDIR /app

Expand All @@ -28,9 +31,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-a -installsuffix cgo \
-o bin/kics cmd/console/main.go


RUN chown -hR kics /app/
USER kics
USER nonroot

# Runtime image
# Ignore no User Cmd since KICS container is stopped afer scan
Expand Down

0 comments on commit e39b2da

Please sign in to comment.