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 47dd1b0 commit e701436
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
@@ -1,7 +1,6 @@
FROM cgr.dev/chainguard/go@sha256:74bc9af1d45fd1c8d432a89148c5e413711204636b54ca05197b511bea7a18fb as build_env

RUN useradd -m -s /bin/bash testuser
RUN chmod 777 /e2e
RUN adduser -u 1000 -h home/kics -s bin/bash -D kics

# Copy the source from the current directory to the Working Directory inside the container
WORKDIR /app
Expand Down Expand Up @@ -29,7 +28,9 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-a -installsuffix cgo \
-o bin/kics cmd/console/main.go

USER testuser

RUN chown -hR kics /app/
USER kics

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

0 comments on commit e701436

Please sign in to comment.