Skip to content

Commit

Permalink
Fixing Docker permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Jan 9, 2025
1 parent c5e3dc4 commit 4c117a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ FROM eclipse-temurin:21-jre@sha256:4c1ec9743c333c9d47f55d883c4e317d117e198899e7e
LABEL org.opencontainers.image.authors="[email protected]"

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

RUN mkdir -p /var/lib/rsk/.rsk && \
chown -R rsk:rsk /var/lib/rsk && \
chmod -R 755 /var/lib/rsk/.rsk

WORKDIR /var/lib/rsk
COPY --from=build --chown=rsk:rsk /home/rsk/rsk.jar ./
Expand Down

0 comments on commit 4c117a1

Please sign in to comment.