Skip to content

Instantly share code, notes, and snippets.

@Neirda24
Created February 5, 2018 17:10
Show Gist options
  • Save Neirda24/a6021d80aa8813629e3e01cb78c9b8ef to your computer and use it in GitHub Desktop.
Save Neirda24/a6021d80aa8813629e3e01cb78c9b8ef to your computer and use it in GitHub Desktop.
usecase for include
ARG SOURCE=mysource
FROM ${CODE_VERSION}
#some common actions
RUN ...
FROM # Dockerfile.common tag
# Do stuff
FROM # Dockerfile.common tag
# INSTALL probe
# modify some configuration parameters
FROM mysource:dev
INCLUDE Dockerfile.include
#some common actions
RUN ...
FROM mysource
INCLUDE 2-Dockerfile.include
# INSTALL probe
# modify some configuration parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment