Skip to content

Commit

Permalink
Merge pull request #2920 from rsksmart/fix/docker_rsk_permission_issue
Browse files Browse the repository at this point in the history
Fixing Docker permission issues
  • Loading branch information
Vovchyk authored Jan 30, 2025
2 parents 93f5eff + 416e776 commit dc988cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN gpg --keyserver https://secchannel.rsk.co/SUPPORT.asc --recv-keys 1DC9157991
FROM eclipse-temurin:17-jre@sha256:38e0afc86a10bf4cadbf1586fb617b3a9a4d09c9a0be882e29ada4ed0895fc84
LABEL org.opencontainers.image.authors="[email protected]"

RUN useradd -ms /sbin/nologin -d /var/lib/rsk rsk
RUN useradd -ms /sbin/nologin -d /var/lib/rsk -o -u 1000 rsk
USER rsk

WORKDIR /var/lib/rsk
Expand All @@ -35,4 +35,3 @@ ENV RSKJ_CLASS=co.rsk.Start
ENV RSKJ_OPTS=""

ENTRYPOINT ["/bin/sh", "-c", "exec java $DEFAULT_JVM_OPTS $RSKJ_SYS_PROPS $RSKJ_LOG_PROPS -cp rsk.jar $RSKJ_CLASS $RSKJ_OPTS \"${@}\"", "--"]

0 comments on commit dc988cf

Please sign in to comment.