jazzdd86 / alpine-flask

72 stars 51 forks source link

How do I add nodejs to this container? #7

Closed psmith3 closed 4 years ago

psmith3 commented 6 years ago

Can you give me some advice on how to add nodejs to this container? I tried adding node to the requirements.txt file and that installs, but I cannot get a node command to run. Seems to be a path issue.

jazzdd86 commented 6 years ago

Please see the part "Installing additional packages in alpine" in the Readme file. You need to put a requirements_image.txt file into the app root folder with all desired packages you want to install at the container creation. If you want to install packages during runtime please use the "docker exec" command as used with all other containers.

psmith3 commented 6 years ago

Yes, I did actually try adding node to the requirements.txt file, but it would not run properly and all I could determine was it was possibly a path issue. Maybe I need to add something other that node?

On Feb 1, 2018, at 1:50 AM, jazzdd86 notifications@github.com wrote:

Please see the part "Installing additional packages in alpine" in the Readme file. You need to put a requirements_image.txt file into the app root folder with all desired packages you want to install at the container creation. If you want to install packages during runtime please use the "docker exec" command as used with all other containers.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jazzdd86 commented 6 years ago

Did you add it to the requirements.txt? It should be a separate file named requirements_image.txt. If you did this correctly, connect to the running docker container and try to run node via shell. You should then see, if there are any problems. I don't use node, so I am not able to help you any further, sorry.

psmith3 commented 6 years ago

Ahh. I will give that a try. Thanks for the reply.

On Feb 1, 2018, at 2:54 PM, jazzdd86 notifications@github.com wrote:

Did you add it to the requirements.txt? It should be a separate file named requirements_image.txt. If you did this correctly, connect to the running docker container and try to run node via shell. You should then see, if there are any problems. I don't use node, so I am not able to help you any further, sorry.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.