-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker build warnings #181
Comments
Two approaches for fixing the warning involving the |
Thanks @keeganwitt for the breakdown. I like the idea of having it pull latest if no goversion is specified. Though I think setting up that logic within a Dockerfile might be a bit challenging. Right now we are using |
One option would be # syntax=docker/dockerfile-upstream:master
ARG go_version=latest
ARG incomplete_tag=${go_version}-alpine
ARG image_tag=${incomplete_tag#latest-}
FROM --platform=$BUILDPLATFORM golang:${image_tag} as base But I'd love to not have to use pre-release Dockerfile features. The only option I can think of to avoid that would be to change the argument, like ARG go_image=alpine
FROM --platform=$BUILDPLATFORM golang:${go_image} as base https://docs.docker.com/reference/dockerfile/#environment-replacement |
Running
make docker-build
results in the following warnings:The text was updated successfully, but these errors were encountered: