Skip to content

Commit

Permalink
setting the user with UID 1000
Browse files Browse the repository at this point in the history
(cherry picked from commit b9abb24)
  • Loading branch information
rmoreliovlabs authored and asoto-iov committed Feb 25, 2025
1 parent e368b2d commit 1c12adb
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:17-jre@sha256:38e0afc86a10bf4cadbf1586fb617b3a9a4d09c9a0be882e29ada4ed0895fc84
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 1c12adb

Please # to comment.