From 25751cade9a12958ead019423ea630035f3b1761 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Wed, 24 Jul 2024 15:12:44 +0200 Subject: [PATCH] Fix FromAsCasing and add entry point to development Dockerfile (#2519) * Fix FromAsCasing and add entry point to development Dockerfile * Add copyright notice to make linter happy --- fluffy/tools/docker/Dockerfile | 7 +++++++ fluffy/tools/docker/Dockerfile.portalhive | 16 ++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/fluffy/tools/docker/Dockerfile b/fluffy/tools/docker/Dockerfile index 4ce360bde..11121ce23 100644 --- a/fluffy/tools/docker/Dockerfile +++ b/fluffy/tools/docker/Dockerfile @@ -1,3 +1,10 @@ +# Fluffy +# Copyright (c) 2022-2024 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + FROM debian:buster-slim AS build RUN apt-get update \ diff --git a/fluffy/tools/docker/Dockerfile.portalhive b/fluffy/tools/docker/Dockerfile.portalhive index d8c861c05..674a3d95f 100644 --- a/fluffy/tools/docker/Dockerfile.portalhive +++ b/fluffy/tools/docker/Dockerfile.portalhive @@ -1,4 +1,11 @@ -FROM debian:stable-slim as build +# Fluffy +# Copyright (c) 2023-2024 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + +FROM debian:stable-slim AS build ENV DEBIAN_FRONTEND=noninteractive TZ="Etc/UTC" ENV NPROC=2 @@ -23,5 +30,10 @@ RUN --mount=type=cache,target=/nimbus-eth1/build --mount=type=cache,target=/nim make -j${NPROC} NIMFLAGS="${NIMFLAGS_COMMON} --parallelBuild:${NPROC}" fluffy && \ mv build/fluffy /usr/local/bin/fluffy -FROM debian:stable-slim as app +# --------------------------------- # +# Starting new image to reduce size # +# --------------------------------- # +FROM debian:stable-slim AS deploy COPY --from=build /usr/local/bin/fluffy /usr/local/bin/fluffy + +ENTRYPOINT ["/usr/local/bin/fluffy"]