Skip to content

Commit

Permalink
fixing entrypoint in docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Tanaka <[email protected]>
  • Loading branch information
pedro-stanaka committed Sep 21, 2024
1 parent 122aefb commit ff6a6fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ RUN chmod a+x qingping_exporter
EXPOSE 10803

# Command to run the executable
CMD ["./qingping_exporter run"]
ENTRYPOINT [ "/root/qingping_exporter" ]

CMD [ "run" ]
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ lint: tidy
clean:
go clean
rm -f $(BINARY_NAME)

# Build cross-platform docker image
docker:
docker buildx build --platform linux/amd64,linux/arm64 -t qingping_exporter:latest .

0 comments on commit ff6a6fd

Please sign in to comment.