BAEL-5496: passing env variables in dockerfile (#12355)
* BAEL-5496: passing env variables in dockerfile * removed echo
This commit is contained in:
parent
5b66626806
commit
90274ec48f
|
@ -0,0 +1,10 @@
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ARG name
|
||||||
|
ENV env_name $name
|
||||||
|
|
||||||
|
COPY greetings.sh .
|
||||||
|
|
||||||
|
RUN chmod +x /greetings.sh
|
||||||
|
|
||||||
|
CMD ["/greetings.sh"]
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo Hello $env_name
|
Loading…
Reference in New Issue