mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 13:56:23 +00:00
f6a5a5b1da
This is needed because commit 0be57eec6e59a0198eccf256ec64011ee461b62f changed the location of the nimbus_beacon_node executable within the container file system. For users, not relying on the official entrypoint this was a breaking change.
21 lines
590 B
Docker
21 lines
590 B
Docker
FROM debian:bullseye-slim
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# Likely to match the first regular user:group created on the host.
|
|
RUN addgroup --gid 1000 user; \
|
|
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
|
|
|
|
USER user
|
|
|
|
STOPSIGNAL SIGINT
|
|
|
|
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
|
|
|
|
RUN mkdir -p /home/user/nimbus-eth2/build && \
|
|
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
|
|
chown -R user:user /home/user/nimbus-eth2/build
|
|
|
|
WORKDIR "/home/user/"
|
|
ENTRYPOINT ["/home/user/nimbus_beacon_node"]
|