✅ Trying to create a dockerfile for an API
Hi everyone, I'm trying to run this command on docker file and where it say
my-github-token
I was trying to put ${GITHUB_TOKEN}
and I have a .env file in the same folder as the dockerfile, but when I run docker build -t template .
it does not work, do I need to make a compose file? I just want to make this work with only the dockerfile, the compose will be in a parent folder.
Thanks!
5 Replies
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Yeah, I just want to know how can I pass those ARGs to a file so I can use them in my dockerfile, maybe through a docker compose, but I wanted to run a docker build first and couldn't do it with the env files, only with --build-arg
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
😔😔😔
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View