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 e3fb3add8e
commit 56afb8bda9
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