Answer the question
In order to leave comments, you need to log in
How to install nodejs on VPS(VDS)?
Registered on a free VPS (VDS) server. With it, I can create a github repository container. Can I create such a repository with a node, connect (create a container) to my repository from a VPS (VDS) server and work with a node on my server?
Answer the question
In order to leave comments, you need to log in
To install Node.js, you need to follow the installation instructions from the site and you can connect and work. Containers are not really needed.
If you really want to tie everything on the docker, then you will have to cut, almost Continius Integration, with rebuilding the container image and restarting it after a new commit to the repository.
And most importantly, most free VPS on OpenVZ virtualization, and docker is not very friendly with it.
The simplest way
https://github.com/creationix/nvm
For native modules, you will also need
build-essential python and often openssl libssl-dev
in this case, we advise you to consider creating and working specifically in the context of working with a Docker container, in which you can customize the container to your needs and deploy the project on any servers - https://nodejs.org/en/docs/guides/nodejs- docker-webapp/ .
If necessary, you can use our ready-made solutions, including a server with pre-installed Docker - https://timeweb.com/en/solutions/os_po/
It is better to install dockers on a VPS with kvm, openvz is essentially a container too, without full virtualization.
> Can I create such a repository with a node
, yes, you can raise your github, but you will need a VPS with more serious resources.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question