Skip to content

Commit

Permalink
Adding ubuntu USER
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Jan 17, 2025
1 parent 4c117a1 commit 7efd48e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ RUN gpg --keyserver https://secchannel.rsk.co/SUPPORT.asc --recv-keys 1DC9157991
FROM eclipse-temurin:21-jre@sha256:4c1ec9743c333c9d47f55d883c4e317d117e198899e7edf1d9cf4c89253b1b9d
LABEL org.opencontainers.image.authors="[email protected]"

RUN useradd -ms /sbin/nologin -d /var/lib/rsk rsk
RUN mkdir -p /var/lib/rsk && \
chown -R 1000:1000 /var/lib/rsk

USER ubuntu

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

WORKDIR /var/lib/rsk
Expand Down

0 comments on commit 7efd48e

Please sign in to comment.