A Dockerfile template
A Dockerfile template
DockerfileThe dockerfile content.
new()Create a new Dockerfile object.
Dockerfile$new(FROM = "rocker/r-base", AS = NULL)FROMThe base image.
ASThe name of the image.
A Dockerfile object.
RUN()Add a RUN command.
Dockerfile$RUN(cmd)cmdThe command to add.
the Dockerfile object, invisibly.
ADD()Add a ADD command.
Dockerfile$ADD(from, to, force = TRUE)fromThe source file.
toThe destination file.
forceIf TRUE, overwrite the destination file.
the Dockerfile object, invisibly.
COPY()Add a COPY command.
Dockerfile$COPY(from, to, force = TRUE)fromThe source file.
toThe destination file.
forceIf TRUE, overwrite the destination file.
the Dockerfile object, invisibly.
WORKDIR()Add a WORKDIR command.
Dockerfile$WORKDIR(where)whereThe working directory.
the Dockerfile object, invisibly.
EXPOSE()Add a EXPOSE command.
Dockerfile$EXPOSE(port)portThe port to expose.
the Dockerfile object, invisibly.
VOLUME()Add a VOLUME command.
Dockerfile$VOLUME(volume)volumeThe volume to add.
the Dockerfile object, invisibly.
CMD()Add a CMD command.
Dockerfile$CMD(cmd)cmdThe command to add.
the Dockerfile object, invisibly.
LABEL()Add a LABEL command.
Dockerfile$LABEL(key, value)key, valueThe key and value of the label.
the Dockerfile object, invisibly.
ENV()Add a ENV command.
Dockerfile$ENV(key, value)key, valueThe key and value of the label.
the Dockerfile object, invisibly.
ENTRYPOINT()Add a ENTRYPOINT command.
Dockerfile$ENTRYPOINT(cmd)cmdThe command to add.
the Dockerfile object, invisibly.
USER()Add a USER command.
Dockerfile$USER(user)userThe user to add.
the Dockerfile object, invisibly.
ARG()Add a ARG command.
Dockerfile$ARG(arg, ahead = FALSE)argThe argument to add.
aheadIf TRUE, add the argument at the beginning of the Dockerfile.
the Dockerfile object, invisibly.
ONBUILD()Add a ONBUILD command.
Dockerfile$ONBUILD(cmd)cmdThe command to add.
the Dockerfile object, invisibly.
STOPSIGNAL()Add a STOPSIGNAL command.
Dockerfile$STOPSIGNAL(signal)signalThe signal to add.
the Dockerfile object, invisibly.
HEALTHCHECK()Add a HEALTHCHECK command.
Dockerfile$HEALTHCHECK(check)checkThe check to add.
the Dockerfile object, invisibly.
SHELL()Add a SHELL command.
Dockerfile$SHELL(shell)shellThe shell to add.
the Dockerfile object, invisibly.
MAINTAINER()Add a MAINTAINER command.
Dockerfile$MAINTAINER(name, email)name, emailThe name and email of the maintainer.
the Dockerfile object, invisibly.
custom()Add a custom command.
Dockerfile$custom(base, cmd)base, cmdThe base and command to add.
the Dockerfile object, invisibly.
used for side effect
asThe file to write to.
used for side effect
switch_cmd()Switch commands.
Dockerfile$switch_cmd(a, b)a, bThe commands to switch.
the Dockerfile object, invisibly.
remove_cmd()Remove a command.
Dockerfile$remove_cmd(where)whereThe commands to remove.
the Dockerfile object, invisibly.
add_after()Add a command after another.
Dockerfile$add_after(cmd, after)cmdThe command to add.
afterWhere to add the cmd
the Dockerfile object, invisibly.
clone()The objects of this class are cloneable with this method.
Dockerfile$clone(deep = FALSE)deepWhether to make a deep clone.