Skip to content

Commit

Permalink
Quote the version number in Dockerfile (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Jan 5, 2021
1 parent 6499ed9 commit 1d11c9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- "master"
- "docker/**"
- "docker**"
schedule:
- cron: '0 0 1 * *' # first of every month

Expand All @@ -26,7 +26,7 @@ jobs:
# always overwrite the latest version with the CRAN version
tags: "v1.0.0,latest"
ref: "v1.0.0"

# always rebuild legacy to pick up newer R library builds
- name: "v0.4.6"
tags: "v0.4.6"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ARG PLUMBER_REF=master
RUN Rscript -e "remotes::install_github('rstudio/plumber@${PLUMBER_REF}')"

EXPOSE 8000
ENTRYPOINT ["R", "-e", "pr <- plumber::plumb(rev(commandArgs())[1]); args <- list(host = '0.0.0.0', port = 8000); if (packageVersion('plumber') >= 1.0.0) { pr$setDocs(TRUE) } else { args$swagger <- TRUE }; do.call(pr$run, args)"]
ENTRYPOINT ["R", "-e", "pr <- plumber::plumb(rev(commandArgs())[1]); args <- list(host = '0.0.0.0', port = 8000); if (packageVersion('plumber') >= '1.0.0') { pr$setDocs(TRUE) } else { args$swagger <- TRUE }; do.call(pr$run, args)"]

# Copy installed example to default file at ~/plumber.R
ARG ENTRYPOINT_FILE=/usr/local/lib/R/site-library/plumber/plumber/04-mean-sum/plumber.R
Expand Down

0 comments on commit 1d11c9e

Please sign in to comment.