Changeset View
Changeset View
Standalone View
Standalone View
keyserver/Dockerfile
Show All 16 Lines | |||||
# To handle 2 correctly, we have the host pass the UID/GID with which they're | # To handle 2 correctly, we have the host pass the UID/GID with which they're | ||||
# running the container. Our approach is based on this one: | # running the container. Our approach is based on this one: | ||||
# https://github.com/mhart/alpine-node/issues/48#issuecomment-430902787 | # https://github.com/mhart/alpine-node/issues/48#issuecomment-430902787 | ||||
ARG HOST_UID | ARG HOST_UID | ||||
ARG HOST_GID | ARG HOST_GID | ||||
ARG COMM_ALCHEMY_KEY | ARG COMM_ALCHEMY_KEY | ||||
ARG COMM_WALLETCONNECT_KEY | ARG COMM_WALLETCONNECT_KEY | ||||
ARG COMM_JSONCONFIG_secrets_geoip_license | |||||
USER root | USER root | ||||
RUN \ | RUN \ | ||||
if [ -z "`getent group $HOST_GID`" ]; then \ | if [ -z "`getent group $HOST_GID`" ]; then \ | ||||
addgroup --system --gid $HOST_GID comm; \ | addgroup --system --gid $HOST_GID comm; \ | ||||
else \ | else \ | ||||
groupmod --new-name comm `getent group $HOST_GID | cut -d: -f1`; \ | groupmod --new-name comm `getent group $HOST_GID | cut -d: -f1`; \ | ||||
fi && \ | fi && \ | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |