Difference between revisions of "Containerfile"

From John Freier
Jump to: navigation, search
Line 2: Line 2:
  
 
OCI prefers the generic term Containerfile.
 
OCI prefers the generic term Containerfile.
 +
 +
== WORKDIR ==
 +
This set the working directory, it will also create the directory if it doesn't exists.
 +
  WORKDIR /opt
  
 
== ENV ==
 
== ENV ==

Revision as of 12:55, 17 January 2023

Containerfile and Dockerfile are interchangeable for the most part.

OCI prefers the generic term Containerfile.

WORKDIR

This set the working directory, it will also create the directory if it doesn't exists.

 WORKDIR /opt

ENV

To set an environment variable.

 ENV EXAMPLE=/opt/example
 ENV APP_PROFILE=dev