BAEL-5496: passing env variables in dockerfile (#12355)

* BAEL-5496: passing env variables in dockerfile

* removed echo
This commit is contained in:
Maciej Główka 2022-07-04 20:11:40 +02:00 committed by GitHub
parent 5b66626806
commit 90274ec48f
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,10 @@
FROM alpine:latest
ARG name
ENV env_name $name
COPY greetings.sh .
RUN chmod +x /greetings.sh
CMD ["/greetings.sh"]

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo Hello $env_name