Skip to content

Commit

Permalink
setting the user with UID 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Jan 17, 2025
1 parent 7b30ab5 commit b9abb24
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ RUN gpg --keyserver https://secchannel.rsk.co/SUPPORT.asc --recv-keys 1DC9157991
FROM eclipse-temurin:21-jre@sha256:4c1ec9743c333c9d47f55d883c4e317d117e198899e7edf1d9cf4c89253b1b9d
LABEL org.opencontainers.image.authors="ops@rootstocklabs.com"

RUN mkdir -p /var/lib/rsk && \
chown -R 1000:1000 /var/lib/rsk

USER ubuntu

RUN mkdir -p /var/lib/rsk/.rsk && \
chown -R ubuntu:ubuntu /var/lib/rsk && \
chmod -R 755 /var/lib/rsk/.rsk
RUN useradd -ms /sbin/nologin -d /var/lib/rsk -o -u 1000 rsk
USER rsk

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

0 comments on commit b9abb24

Please sign in to comment.