-
Notifications
You must be signed in to change notification settings - Fork 137
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
Slim v4 image failed to build with node #337
Labels
bug confirmed
Bug reproduced and qualified
Comments
Same issue at me.
|
For anyone having same problem, you can use this image instead for temporary fix:
|
Hum i think we can just change ONBUILD RUN if [ -n "$NODE_VERSION" ]; then \
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends gnupg && \
curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | sudo bash - && \
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends nodejs && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends yarn && \
- if [[ "${NODE_VERSION}" == "10" ]]; then npm install -g npm@^6.14; else npm install -g npm; fi && \
+ if [[ "${NODE_VERSION}" == "10" ]]; then sudo npm install -g npm@^6.14; fi && \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*; \
fi; I think there are more issue related to npm install but we will more to v5 in few month so maybe we can use this quickfix for instance. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Using this Dockerfile:
The build should be finished without error and having node 12 installed.
Current Behavior
The build process will produce an error:
Possible Solution
I imagine 2 options:
Steps to Reproduce (for bugs)
docker build . -t slim-image
The text was updated successfully, but these errors were encountered: