A Dockerfile template

A Dockerfile template

Value

A dockerfile template

Methods

RUN

add a RUN command

ADD

add a ADD command

COPY

add a COPY command

WORKDIR

add a WORKDIR command

EXPOSE

add an EXPOSE command

VOLUME

add a VOLUME command

CMD

add a CMD command

LABEL

add a LABEL command

ENV

add a ENV command

ENTRYPOINT

add a ENTRYPOINT command

VOLUME

add a VOLUME command

USER

add a USER command

ARG

add an ARG command

ONBUILD

add a ONBUILD command

STOPSIGNAL

add a STOPSIGNAL command

HEALTHCHECK

add a HEALTHCHECK command

STOPSIGNAL

add a STOPSIGNAL command

SHELL

add a SHELL command

MAINTAINER

add a MAINTAINER command

custom

add a custom command

write

save the Dockerfile

switch_cmd

switch two command

remove_cmd

remove_cmd one or more command(s)

Methods


Method new()

Usage

Dockerfile$new(FROM = "rocker/r-base", AS = NULL)


Method RUN()

Usage

Dockerfile$RUN(cmd)


Method ADD()

Usage

Dockerfile$ADD(from, to, force = TRUE)


Method COPY()

Usage

Dockerfile$COPY(from, to, force = TRUE)


Method WORKDIR()

Usage

Dockerfile$WORKDIR(where)


Method EXPOSE()

Usage

Dockerfile$EXPOSE(port)


Method VOLUME()

Usage

Dockerfile$VOLUME(volume)


Method CMD()

Usage

Dockerfile$CMD(cmd)


Method LABEL()

Usage

Dockerfile$LABEL(key, value)


Method ENV()

Usage

Dockerfile$ENV(key, value)


Method ENTRYPOINT()

Usage

Dockerfile$ENTRYPOINT(cmd)


Method USER()

Usage

Dockerfile$USER(user)


Method ARG()

Usage

Dockerfile$ARG(arg, ahead = FALSE)


Method ONBUILD()

Usage

Dockerfile$ONBUILD(cmd)


Method STOPSIGNAL()

Usage

Dockerfile$STOPSIGNAL(signal)


Method HEALTHCHECK()

Usage

Dockerfile$HEALTHCHECK(check)


Method SHELL()

Usage

Dockerfile$SHELL(shell)


Method MAINTAINER()

Usage

Dockerfile$MAINTAINER(name, email)


Method custom()

Usage

Dockerfile$custom(base, cmd)


Method print()

Usage

Dockerfile$print()


Method write()

Usage

Dockerfile$write(as = "Dockerfile")


Method switch_cmd()

Usage

Dockerfile$switch_cmd(a, b)


Method remove_cmd()

Usage

Dockerfile$remove_cmd(where)


Method add_after()

Usage

Dockerfile$add_after(cmd, after)


Method clone()

The objects of this class are cloneable with this method.

Usage

Dockerfile$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

my_dock <- Dockerfile$new()