rpc-nodes/bor/Dockerfile.heimdall
2022-03-03 17:53:57 +10:00

26 lines
569 B
Docker

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)"