Skip to content

Commit

Permalink
Run as a non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed May 28, 2024
1 parent 133e6d5 commit 6c2ff4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ FROM alpine:edge

# Install ca-certificates
RUN apk add --update ca-certificates
WORKDIR /home

# Install bash
RUN apk add --no-cache bash

WORKDIR /home

RUN addgroup -g 333 polymer && adduser -D -u 333 -G polymer polymer
RUN chown -R polymer:polymer /home
USER polymer

# Copy over binaries from the build-env
COPY --from=build-env /go/bin/juno /usr/bin/juno

0 comments on commit 6c2ff4f

Please sign in to comment.