nimbus-eth2/docker/dist/binaries/Dockerfile.bn.amd64

28 lines
836 B
Docker

# 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.
FROM debian:bookworm-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"]