Skip to content

Commit

Permalink
update docker images to use non root user
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulvpatil committed Nov 24, 2024
1 parent d31a685 commit 3512b1c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op-batcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ FROM alpine:3.16

COPY --from=builder /app/op-batcher/bin/op-batcher /usr/local/bin

RUN addgroup -g 60000 -S conduit && \
adduser -u 60000 -S -G conduit -h /conduit conduit

USER conduit:conduit

ENTRYPOINT ["op-batcher"]
5 changes: 5 additions & 0 deletions op-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ FROM alpine:3.16

COPY --from=builder /app/op-node/bin/op-node /usr/local/bin

RUN addgroup -g 60000 -S conduit && \
adduser -u 60000 -S -G conduit -h /conduit conduit

USER conduit:conduit

CMD ["op-node"]
5 changes: 5 additions & 0 deletions op-proposer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ FROM alpine:3.16

COPY --from=builder /app/op-proposer/bin/op-proposer /usr/local/bin

RUN addgroup -g 60000 -S conduit && \
adduser -u 60000 -S -G conduit -h /conduit conduit

USER conduit:conduit

CMD ["op-proposer"]

0 comments on commit 3512b1c

Please sign in to comment.