2024-12-01 12:07:03 +00:00
|
|
|
# Copyright (c) 2022-2024 Status Research & Development GmbH. Licensed under
|
|
|
|
# either of:
|
|
|
|
# - Apache License, version 2.0
|
|
|
|
# - MIT license
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
2024-11-29 23:21:22 +00:00
|
|
|
FROM --platform=linux/arm/v7 debian:bookworm-slim
|
2021-03-10 02:59:19 +00:00
|
|
|
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
|
|
|
# We need the host's registered binfmt_misc "interpreter" inside the container,
|
|
|
|
# for that transparent virtualisation to work.
|
|
|
|
COPY "qemu-arm-static" "/usr/bin/"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-12-20 21:32:31 +00:00
|
|
|
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
|
2022-12-23 17:28:46 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-12-20 21:32:31 +00:00
|
|
|
WORKDIR "/home/user/"
|
|
|
|
ENTRYPOINT ["/home/user/nimbus_beacon_node"]
|