Skip to content
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

Multi-stage builds? #15

Open
jackfirth opened this issue Oct 27, 2017 · 1 comment
Open

Multi-stage builds? #15

jackfirth opened this issue Oct 27, 2017 · 1 comment

Comments

@jackfirth
Copy link
Collaborator

Docker now supports multi-stage builds to avoid putting build-only intermediate files and executables in the final output image. Might be worth investigating how that can help here?

@ccfontes
Copy link

Speaking of which, I'm trying to do multi-stage:

FROM racket/racket:8.8-full AS racket

FROM ghcr.io/stefan-hoeck/idris2-pack:nightly-230330 AS idris2-racket
ONBUILD COPY --from=racket /usr/bin/raco /usr/bin/raco
ONBUILD COPY --from=racket /usr/bin/racket /usr/bin/racket
ONBUILD COPY --from=racket /usr/share/racket /usr/share/racket
ONBUILD COPY --from=racket /usr/lib/racket /usr/lib/racket

but I get this error with raco:

RUN pack --cg racket build function.ipkg
/usr/bin/raco: Unrecognized command: exe

apt works just fine, so I'm wondering which files I missed COPYing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants