-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom COPY additions not exported #171
Comments
There is a After exporting that, I'm happy to add a paramter to main method: I'll take a stab at this, possibly next week and also fix #172 (Don't you run into that error? That is why my example below does not filter base image packages..). > docker <- suppressWarnings(dockerfile(expression("library(plumber)"),
image = "trestletech/plumber",
offline = FALSE,
cmd = Cmd("api.R"),
maintainer = NULL,
container_workdir = NULL,
entrypoint = Entrypoint("R",
params = list("-e",
"pr <- plumber::plumb()")),
filter_baseimage_pkgs = FALSE))
> addInstruction(docker) <- containerit:::Copy("host", "container")
> print(docker)
FROM trestletech/plumber
RUN export DEBIAN_FRONTEND=noninteractive; apt-get -y update \
&& apt-get install -y git-core \
libcurl4-openssl-dev \
libssl-dev \
make
RUN ["install2.r", "assertthat", "backports", "crayon", "curl", "desc", "digest", "fastmap", "formatR", "fs", "futile.logger", "futile.options", "htmltools", "httpuv", "jsonlite", "lambda.r", "later", "magrittr", "mime", "miniUI", "pillar", "pkgconfig", "promises", "R6", "Rcpp", "remotes", "rlang", "rprojroot", "semver", "shiny", "shinyFiles", "stevedore", "stringi", "stringr", "tibble", "xtable"]
RUN ["installGithub.r", "goldingn/versions@de231cb523aa9134a1bd4e947c8204a7a08f3daa"]
COPY ["host", "container"]
ENTRYPOINT ["R", "-e", "pr <- plumber::plumb()"]
CMD ["api.R"] |
Yes that is where I tend to put them.
Ah work in progress so not come across it yet, not tried it beyond test scripts without heavy library dependencies yet. |
Its for a Cloud Build package which incidentally is my preferred alternative to docker_build now - https://github.com/MarkEdmondson1234/cloudRunner |
Hello :)
I was trying to replicate the exact Dockerfile from a folder, but had to override the COPY line as there was no option to add a custom one like
Cmd()
- I had to use the below:Could there be a
Copy()
function exported to achieve similar to above?The text was updated successfully, but these errors were encountered: