Skip to content
Writing an API with R
R Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
app.R
dep.R
start.R

README.md

api-with-R

Writing an API with R

Deployment

Create a docker image to be pushed to a Google Container Registry of a project.

docker build -t gcr.io/<PROJECT ID>/r-api:0.0.1 .
docker push gcr.io/<PROJECT ID>/r-api:0.0.1

Things to take note:

  • Application requires to be exposed to port 8080 (Google Cloud Run)
  • R applications are single threaded and hence, can only accept a concurrency of 1
You can’t perform that action at this time.