-
clone the repo git clone [email protected]{.email}:valkov/r-api.git
-
install docker..
-
build docker image docker build -t r-api -f Dockerfile .
-
run docker image docker run -p 8000:8000 r-api:latest
- ssh [email protected]{.email} (your ssh token to be added to Droplet instance)
- cd r-api
- git pull
- docker build -t r-api -f Dockerfile .
- docker run -p 8000:8000 r-api:latest
- to restart: run "docker ps" get container_id and then 'docker restart {container_id}'