Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Update to Ubuntu 22.04 and allow running docker image as user that's …
Browse files Browse the repository at this point in the history
…not ethsigner
  • Loading branch information
mfolnovic committed Aug 10, 2022
1 parent 2e76099 commit 2a8f4b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN JAVA_TOOL_OPTIONS="-Djdk.lang.Process.launchMechanism=vfork" "$JAVA_HOME/bin
--compress=2 \
--output /javaruntime

FROM ubuntu:21.10
FROM ubuntu:22.04
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH "${JAVA_HOME}/bin:${PATH}"
COPY --from=jre-build /javaruntime $JAVA_HOME
Expand All @@ -20,7 +20,8 @@ RUN apt update && apt install -y --no-install-recommends curl iputils-ping net-t

# Add ethsigner user instead of using root (may bring backward incompatibility for previous directory mounts)
RUN adduser --disabled-password --gecos "" --home /opt/ethsigner ethsigner && \
chown ethsigner:ethsigner /opt/ethsigner
chown ethsigner:ethsigner /opt/ethsigner && \
chmod 755 /opt/ethsigner
USER ethsigner
WORKDIR /opt/ethsigner

Expand Down

0 comments on commit 2a8f4b5

Please sign in to comment.