Skip to content

Instantly share code, notes, and snippets.

@KangDroid
Created September 12, 2022 15:20
Show Gist options
  • Save KangDroid/637a4d13746065d1708159f9b8254f60 to your computer and use it in GitHub Desktop.
Save KangDroid/637a4d13746065d1708159f9b8254f60 to your computer and use it in GitHub Desktop.
Dockerfile-Arg-To-Env
FROM ubuntu:latest
ARG TEST_ENV # docker build . -t test --build-arg TEST_ENV="wow"
ENV HELLO_ENV ${TEST_ENV}
# 이거 빌드한 다음에 실행하고, echo $HELLO_ENV하면..!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment