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 10fbda1 commit 92d5f0e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
FROM cgr.dev/chainguard/go@sha256:74bc9af1d45fd1c8d432a89148c5e413711204636b54ca05197b511bea7a18fb as build_env

RUN adduser --disabled-password --gecos "" newuser
RUN chmod 777 ./
RUN chown -R newuser:newuser ./

# Switch to the new user
USER newuser

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

Expand All @@ -18,6 +11,13 @@ ARG DESCRIPTIONS_URL=""
ARG TARGETOS
ARG TARGETARCH

RUN adduser --disabled-password --gecos "" newuser
RUN chmod 777 ./
RUN chown -R newuser:newuser ./

# Switch to the new user
USER newuser

# Copy go mod and sum files
COPY go.mod go.sum ./

Expand Down

0 comments on commit 92d5f0e

Please sign in to comment.