xxxxxxxxxx
docker build \
-t essearch/ess-elasticsearch:1.7.6 \
--build-arg number_of_shards=5 \
--build-arg number_of_replicas=2 \
--no-cache .
xxxxxxxxxx
docker build -t essearch/ess-elasticsearch:1.7.6 --build-arg number_of_shards=5 --build-arg number_of_replicas=2 --no-cache .
xxxxxxxxxx
ARG PGMAJORVERSION
FROM postgres:$PGMAJORVERSION
#re-declare, if you want to use it further
ARG PGMAJORVERSION
RUN echo "$PGMAJORVERSION" > /ver.out