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
This commit is contained in:
Kim De Mey 2024-07-24 15:12:44 +02:00 committed by GitHub
parent 01ba18da74
commit 25751cade9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 2 deletions

View File

@ -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 \

View File

@ -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"]