Dockerfile | R Documentation |
A Dockerfile template
A Dockerfile template
Dockerfile
The dockerfile content.
new()
Create a new Dockerfile object.
Dockerfile$new(FROM = "rocker/r-base", AS = NULL)
FROM
The base image.
AS
The name of the image.
A Dockerfile object.
RUN()
Add a RUN command.
Dockerfile$RUN(cmd)
cmd
The command to add.
the Dockerfile object, invisibly.
ADD()
Add a ADD command.
Dockerfile$ADD(from, to, force = TRUE)
from
The source file.
to
The destination file.
force
If TRUE, overwrite the destination file.
the Dockerfile object, invisibly.
COPY()
Add a COPY command.
Dockerfile$COPY(from, to, force = TRUE)
from
The source file.
to
The destination file.
force
If TRUE, overwrite the destination file.
the Dockerfile object, invisibly.
WORKDIR()
Add a WORKDIR command.
Dockerfile$WORKDIR(where)
where
The working directory.
the Dockerfile object, invisibly.
EXPOSE()
Add a EXPOSE command.
Dockerfile$EXPOSE(port)
port
The port to expose.
the Dockerfile object, invisibly.
VOLUME()
Add a VOLUME command.
Dockerfile$VOLUME(volume)
volume
The volume to add.
the Dockerfile object, invisibly.
CMD()
Add a CMD command.
Dockerfile$CMD(cmd)
cmd
The command to add.
the Dockerfile object, invisibly.
LABEL()
Add a LABEL command.
Dockerfile$LABEL(key, value)
key, value
The key and value of the label.
the Dockerfile object, invisibly.
ENV()
Add a ENV command.
Dockerfile$ENV(key, value)
key, value
The key and value of the label.
the Dockerfile object, invisibly.
ENTRYPOINT()
Add a ENTRYPOINT command.
Dockerfile$ENTRYPOINT(cmd)
cmd
The command to add.
the Dockerfile object, invisibly.
USER()
Add a USER command.
Dockerfile$USER(user)
user
The user to add.
the Dockerfile object, invisibly.
ARG()
Add a ARG command.
Dockerfile$ARG(arg, ahead = FALSE)
arg
The argument to add.
ahead
If TRUE, add the argument at the beginning of the Dockerfile.
the Dockerfile object, invisibly.
ONBUILD()
Add a ONBUILD command.
Dockerfile$ONBUILD(cmd)
cmd
The command to add.
the Dockerfile object, invisibly.
STOPSIGNAL()
Add a STOPSIGNAL command.
Dockerfile$STOPSIGNAL(signal)
signal
The signal to add.
the Dockerfile object, invisibly.
HEALTHCHECK()
Add a HEALTHCHECK command.
Dockerfile$HEALTHCHECK(check)
check
The check to add.
the Dockerfile object, invisibly.
SHELL()
Add a SHELL command.
Dockerfile$SHELL(shell)
shell
The shell to add.
the Dockerfile object, invisibly.
MAINTAINER()
Add a MAINTAINER command.
Dockerfile$MAINTAINER(name, email)
name, email
The name and email of the maintainer.
the Dockerfile object, invisibly.
custom()
Add a custom command.
Dockerfile$custom(base, cmd)
base, cmd
The base and command to add.
the Dockerfile object, invisibly.
print()
Print the Dockerfile.
Dockerfile$print()
used for side effect
write()
Write the Dockerfile to a file.
Dockerfile$write(as = "Dockerfile")
as
The file to write to.
used for side effect
switch_cmd()
Switch commands.
Dockerfile$switch_cmd(a, b)
a, b
The commands to switch.
the Dockerfile object, invisibly.
remove_cmd()
Remove a command.
Dockerfile$remove_cmd(where)
where
The commands to remove.
the Dockerfile object, invisibly.
add_after()
Add a command after another.
Dockerfile$add_after(cmd, after)
cmd
The command to add.
after
Where to add the cmd
the Dockerfile object, invisibly.
clone()
The objects of this class are cloneable with this method.
Dockerfile$clone(deep = FALSE)
deep
Whether to make a deep clone.
my_dock <- Dockerfile$new()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.