From b0a9d237ac495e568c342c96bee7d0c3b3f41f61 Mon Sep 17 00:00:00 2001 From: Miika <85478566+miikaforma@users.noreply.github.com> Date: Sun, 14 Jan 2024 23:49:48 +0200 Subject: [PATCH] Fixed an issue with running the image --- Dockerfile.release | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile.release b/Dockerfile.release index a84aa9b..6ac776c 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -7,9 +7,12 @@ ARG TARGETARCH RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then export BINARY_PATH=entsoe-logger-x86_64-unknown-linux-musl; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then export BINARY_PATH=entsoe-logger-aarch64-unknown-linux-musl; else export BINARY_PATH=entsoe-logger-x86_64-unknown-linux-musl; fi \ && mv ./${BINARY_PATH} ./entsoe-logger +# Add executable permissions +RUN chmod +x ./entsoe-logger + # Second stage: create the final image FROM scratch COPY --from=builder /entsoe-logger /entsoe-logger USER 1000 -CMD ["./entsoe-logger"] \ No newline at end of file +CMD ["./entsoe-logger"]