Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 862 Bytes

Dockerfile instructions.md

File metadata and controls

24 lines (18 loc) · 862 Bytes

Dockerfile instructions

Some point to be noticed when writing a Dockerfile

Update an environment variable

ENV PATH="$HOME/miniconda/bin:${PATH}"

In a Dockerfile, How to update PATH environment variable?

COPY v.s. ADD

COPY is the recommended instruction.

Dockerfile COPY vs ADD: key differences and best practices

To reuse the value of ARG

[Feature Request] Support any number of ARG being declared before FROM and available during build

ARG MY_ARG1
# consume this argument

# need to re-declare it so the value of MY_ARG1 can be reused
ARG MY_ARG1