Can't Start Docker Image
Go to solution
Solved by igormp,
Done, you should be able to build your own binary with Go by doing a
go build nrpe_exporter.go
And using the following Dockerfile:
FROM alpine:latest RUN apk update && apk add --no-cache openssl RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 COPY nrpe_exporter /bin/nrpe_exporter EXPOSE 9275 ENTRYPOINT [ "/bin/nrpe_exporter" ]
If you still want to have a multi stage build in order to do everything inside your image, feel free to do so.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now