rpc-nodes/bor/Dockerfile.heimdall

26 lines
569 B
Docker
Raw Permalink Normal View History

2022-03-03 08:53:57 +01:00
ARG DOCKER_TAG
FROM 0xpolygon/heimdall:${DOCKER_TAG}
RUN apk update && apk add ca-certificates bash tzdata wget su-exec aria2 curl
ARG USER=heimdall
ARG UID=10000
# See https://stackoverflow.com/a/55757473/12429735RUN
RUN adduser \
--disabled-password \
--gecos "" \
--shell "/sbin/nologin" \
--uid "${UID}" \
"${USER}"
RUN mkdir -p /var/lib/heimdall && chown ${USER}:${USER} /var/lib/heimdall
WORKDIR /var/lib/heimdall
COPY ./docker-entrypoint-heimdalld.sh /usr/local/bin/docker-entrypoint.sh
USER ${USER}
CMD [ "/bin/sh", "-c", "# (nop)"