✅ 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!
No description
5 Replies
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Carlos Saraiva
Carlos SaraivaOP2w ago
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
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Carlos Saraiva
Carlos SaraivaOP2w ago
😔😔😔
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?