-
Notifications
You must be signed in to change notification settings - Fork 481
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
ARG support in COPY #2352
Comments
Hacky workaround, as discussed on the slack:
It would be nice to have ARG evaluation in COPY. |
FYI—the ARG used in FROM must come before all the FROM lines. Took me way too long to figure this out! https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact |
knarfytrebil
referenced
this issue
in roppongeeks/dockerfiles
Mar 25, 2019
Abelaa
referenced
this issue
in Abelaa/pcmt
Oct 15, 2020
Uses a dockerfile workaround: https://github.com/docker/cli/issues/996#issuecomment-380424401
Abelaa
referenced
this issue
in Abelaa/pcmt
Oct 15, 2020
Uses a dockerfile workaround: https://github.com/docker/cli/issues/996#issuecomment-380424401
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Steps to reproduce the issue:
Describe the results you received:
invalid from flag value ${IMAGE_BUILDER_NAME}: invalid reference format: repository name must be lowercase
Describe the results you expected:
Successfully built fe978fd298a
Output of
docker version
:Output of
docker info
:FROM node:8-alpine
ARG IMAGE_BUILDER_NAME
COPY --from=${IMAGE_BUILDER_NAME} /src/dist /app/dist
The text was updated successfully, but these errors were encountered: