Dockerfile: Difference between revisions
Jump to navigation
Jump to search
(→LABEL) |
(→LABEL) |
||
Line 33: | Line 33: | ||
==LABEL== | ==LABEL== | ||
Applies a [[ | Applies a [[Docker_Concepts#Labels|label]] to the image. | ||
<pre> | <pre> | ||
LABEL "something"="something else" "other label"="some other content" | LABEL "something"="something else" "other label"="some other content" | ||
</pre> | </pre> |
Revision as of 14:44, 26 April 2017
Internal
Overview
A Dockerfile defines how a container should look at build time, and it contains all the steps that are required to create the image. Each command (line) in the Dockerfile generates a new layer in the image.
Commands
FROM
Specifies the base image.
FROM node:0.10
USER
ENV
RUN
ADD
WORKDIR
CMD
MAINTAINER
LABEL
Applies a label to the image.
LABEL "something"="something else" "other label"="some other content"