Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build docker image from Dockerfile doesn't work as expected #319

Open
hrv231 opened this issue Feb 23, 2022 · 1 comment
Open

build docker image from Dockerfile doesn't work as expected #319

hrv231 opened this issue Feb 23, 2022 · 1 comment

Comments

@hrv231
Copy link

hrv231 commented Feb 23, 2022

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.

@howardZa
Copy link

howardZa commented Nov 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants