rpc-nodes/bor/Dockerfile.borbinary

27 lines
536 B
Docker
Raw Permalink Normal View History

2022-03-03 08:53:57 +01:00
ARG DOCKER_TAG
FROM 0xpolygon/bor:${DOCKER_TAG}
# Unused, this is here to avoid build time complaints
ARG BUILD_TARGET
ARG USER=bor
ARG UID=10001
RUN apk add --no-cache ca-certificates bash tzdata su-exec aria2
# See https://stackoverflow.com/a/55757473/12429735RUN
RUN adduser \
--disabled-password \
--gecos "" \
--shell "/sbin/nologin" \
--uid "${UID}" \
"${USER}"
RUN mkdir -p /var/lib/bor && chown ${USER}:${USER} /var/lib/bor
COPY ./docker-entrypoint.sh /usr/local/bin/
USER ${USER}
ENTRYPOINT ["bor"]