FROM alpine:3.9.5
ARG params
ENV params_env=$params
export IMAGE=example;
docker build --build-arg params=value -t $IMAGE -f Dockerfile.echo2 .
docker run -it $IMAGE sh
/ # env
HOSTNAME=55b77a913f48
SHLVL=1
HOME=/root
params_env=value
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/