Comments (2)
Hacky workaround, as discussed on the slack:
ARG IMAGE_BUILDER_NAME
FROM ${IMAGE_BUILDER_NAME} as builder
FROM node:8-alpine
<code...>
COPY --from=builder /src/dist /app/dist
It would be nice to have ARG evaluation in COPY.
from buildx.
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
from buildx.
Related Issues (20)
- [vendor] Update compose-go v2.0.2
- [vendor] Update docker/cli to v?.?.?
- [v0.14] vendor buildkit formatter with lint support
- [0.13+] Creating a `docker context` automatically creates an unwanted `docker buildx` instance HOT 3
- runc run failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory HOT 1
- `imagetools create` should return the digest of the new image HOT 1
- bake: subrequest support for printing outline/targets/lint
- WCOW buildkit/buildx caching HOT 11
- [v0.14] normalize source printing for lint warnings
- Using --mount=type=ssh with kubernetes build engine, the socket does not exist to the build layer HOT 2
- I try to do COPY ../example . , I get an error when doing this HOT 4
- Unable to use custom build output with multiple child directories on windows HOT 5
- The kubeconfig environment variable is sometimes not correctly referenced HOT 8
- Invalid bake target syntax still builds HOT 1
- bake: default environment variable takes over override HOT 2
- `docker build` failed when using `crun` instead of `runc` HOT 4
- Opentelemetry environment variables cause the CLI to error without decent error message HOT 7
- `prune`: filtering out `ADD --checksum=... https://...` entries HOT 3
- Allow to use TypeScript for Bake HOT 3
- No running builder detected during build, "ERROR: expected 1 replicas to be ready, got 0"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildx.