Skip to content

Commit

Permalink
Fixed an issue with running the image
Browse files Browse the repository at this point in the history
  • Loading branch information
miikaforma authored Jan 14, 2024
1 parent b9a8839 commit b0a9d23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["./entsoe-logger"]

0 comments on commit b0a9d23

Please sign in to comment.