![]() & useradd -uid 1000 -gid node -shell /bin/bash -create-home node I include you me CentOs based node image (based on the oficial node image I linked you up) so you may look at it: FROM centos:centos8 I think that your main problem is not importing the keys to the server, there in the image you should find the answer.Īlso, in the image there comes a part responsible to detecting which architecture you have but mainly most architectures are going to be "圆4". ![]() The second part comes the part I believe its going to help you in all that code you have a part where you exchange gpg keys with a server and just after that, depending on your architecture, the nodejs program is downloaded from the nodejs oficial page and its prepared to be available to run. ![]() The first part of the node image runs commands to create a "node" user which I can't stress enough how good of a security practice is running your node containers from another user which is not "root". If you enter to the next link, you may see how node docker image is constructed: I actually accomplished making a nodejs CentOs image based on the actual nodejs docker image. I have searched a long time but I do not know why this package wants to install and why it does not install. The last lines are Failed to fetch Bad header line Bad header data Į: Failed to fetch Bad header line Bad header data Į: Unable to fetch some archives, maybe run apt-get update or try with -fix-missing? I execute the command apt-get install -y lsb-release The following lines appear : + apt-get install -y lsb-release > /dev/null 2>&1 ![]() The last line tries to install the lsb-release package but an error occurs. I execute the following instructions step by step docker run -rm -it debian:latest The dockerfile is like this : FROM debian:9 I am writing a Dockerfile to run nodejs on a debian server but the compilation cannot be done.
0 Comments
Leave a Reply. |