Difference between revisions of "ARG"
Jump to navigation
Jump to search
(Removed redirect to Dockerfile) Tag: Removed redirect |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | https://docs.docker.com/engine/reference/builder/#arg | ||
+ | |||
ARG elasticsearch_version | ARG elasticsearch_version | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${elasticsearch_version} | FROM docker.elastic.co/elasticsearch/elasticsearch:${elasticsearch_version} | ||
Line 4: | Line 6: | ||
RUN bin/elasticsearch-plugin install --batch repository-gcs | RUN bin/elasticsearch-plugin install --batch repository-gcs | ||
+ | [[--build-arg]] | ||
+ | [[$1]] | ||
+ | == See also == | ||
+ | * {{Dockerfile}} | ||
− | + | [[Category:Docker]] |
Latest revision as of 10:16, 8 April 2023
https://docs.docker.com/engine/reference/builder/#arg
ARG elasticsearch_version FROM docker.elastic.co/elasticsearch/elasticsearch:${elasticsearch_version} RUN bin/elasticsearch-plugin install --batch repository-gcs
--build-arg $1
See also[edit]
Dockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK
,hadolint, LABEL, EXPOSE
Advertising: