diff --git a/op-batcher/Dockerfile b/op-batcher/Dockerfile index f38d9baf6..0aafbdf0b 100644 --- a/op-batcher/Dockerfile +++ b/op-batcher/Dockerfile @@ -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"] diff --git a/op-node/Dockerfile b/op-node/Dockerfile index 7d5ebddd4..373d3568d 100644 --- a/op-node/Dockerfile +++ b/op-node/Dockerfile @@ -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"] diff --git a/op-proposer/Dockerfile b/op-proposer/Dockerfile index 05e98513a..3e9459535 100644 --- a/op-proposer/Dockerfile +++ b/op-proposer/Dockerfile @@ -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"]