barnybug/cli53

build docker image from Dockerfile doesn't work as expected

hrv231 opened this issue · 1 comments

Issue type

  • Bug report

cli53 version (cli53 --version)

cli53-linux-amd64

OS / Platform

alpine:latest

Steps to reproduce

wget https://github.com/barnybug/cli53/releases/download/0.8.18/cli53-linux-amd64

FROM alpine:latest
COPY cli53-linux-amd64 /bin/cli53
RUN chmod +x /bin/cli53 && apk add --no-cache openssl ca-certificates
ENTRYPOINT ["cli53"]
CMD ["-v"]

Expected behaviour

go to console, be able to type cli53 and work.

Actual behaviour

/ # cli53
sh: cli53: not found

I had to change the docker to ENTRYPOINT ["sh"] to be able to keep the docker running, but when I'm inside the SHell the cli53 is not found, but it is there if I do /bin/cli53.

I can run it as 
/ # . cli53

Have you checked if the documentation has the information you require?

Could you contribute a fix or help testing with this issue?

Yes, I'm ready to test.

That seems to be an alpine musl vs. libc thing. Adding RUN apk add --no-cache libc6-compat made it work for me