Skip to content

Commit

Permalink
Run the Operator as UID/GID 1000/1000.
Browse files Browse the repository at this point in the history
  • Loading branch information
logdnalf committed Jan 29, 2020
1 parent aede835 commit b4a5895
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ FROM alpine:latest
RUN apk --no-cache add \
ca-certificates
COPY --from=0 /go/src/github.com/spotahome/redis-operator/bin/linux/redis-operator /usr/local/bin
RUN addgroup -g 1000 rf && \
adduser -D -u 1000 -G rf rf && \
chown rf:rf /usr/local/bin/redis-operator
USER rf

ENTRYPOINT ["/usr/local/bin/redis-operator"]

0 comments on commit b4a5895

Please sign in to comment.