Deploy website on VPS

I want to deploy website to remote VPS and in same time to keep same working environment for app (including dependencies).
1 answer

Deployment using containers

This can be done by performing several steps:
1. Install Docker on local and remote machine
2. Create Dockerfile on local machine and set all enviroment dependencies/variables (and add website to resources)
3. Build Docker image from Dockerfile and run docker container from that image
4. Test website

Than transfer Dockerfile from local machine to remote machine and repeat steps 3. and 4.