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