Docker build arguments

I have a docker build command that allows a passing in a git tag argument

docker build --build-arg VERSION=$(git describe --tags --abbrev=0) -t myapi .

How can i add this version argument to Render ?

There’s no ability to pass arguments to docker in this way. You can use the ARG directive in the Dockerfile to reference environment variables though - although, they might not provide a solution for what you’re doing here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.