Skip to content

Commit

Permalink
Adding ubuntu USER
Browse files Browse the repository at this point in the history
(cherry picked from commit 7b30ab5)
  • Loading branch information
rmoreliovlabs authored and asoto-iov committed Feb 24, 2025
1 parent fa068b8 commit 85ef858
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:17-jre@sha256:38e0afc86a10bf4cadbf1586fb617b3a9a4d09c9a0be882e29ada4ed0895fc84
LABEL org.opencontainers.image.authors="ops@rootstocklabs.com"

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 85ef858

Please # to comment.