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

/bin/sh: apk-install: not found when trying to add OpenSSL #274

Closed
IdanAdar opened this issue May 7, 2017 · 4 comments
Closed

/bin/sh: apk-install: not found when trying to add OpenSSL #274

IdanAdar opened this issue May 7, 2017 · 4 comments
Labels

Comments

@IdanAdar
Copy link

IdanAdar commented May 7, 2017

Using FROM node:6.9.4-alpine I am added the following in the Dockerfile:

RUN apk-install openssl

This however fails with:

/bin/sh: apk-install: not found
The command '/bin/sh -c apk-install openssl' returned a non-zero code: 127

How can I overcome this?

@IdanAdar
Copy link
Author

IdanAdar commented May 7, 2017

Actually I think it should simply be: RUN apk add --update openssl

@andyshinn
Copy link
Contributor

The apk-install script is now deprecated. Use apk add --no-cache openssl instead. Related to #18 and #269.

@IdanAdar
Copy link
Author

IdanAdar commented May 8, 2017

Thanks @andyshinn. May I know the difference between the two?

@andyshinn
Copy link
Contributor

They both accomplish the same thing. The apk-install script was a small thing we originally added to remove the cache before it was built in to apk. Now the --no-cache is supported from Alpine themselves so our script isn't required.

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

No branches or pull requests

2 participants