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

COPY racket dist from docker img is insufficient #20

Open
ccfontes opened this issue Apr 8, 2023 · 2 comments
Open

COPY racket dist from docker img is insufficient #20

ccfontes opened this issue Apr 8, 2023 · 2 comments
Labels

Comments

@ccfontes
Copy link
Owner

ccfontes commented Apr 8, 2023

Error: huh, erased from the terminal buffer, but it was spurious as such: build/exec/index not found.

Offending code:

FROM racket/racket:8.8 AS racket

FROM idris2-chez 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

What works:

FROM racket/racket:8.8 AS racket

FROM idris2-chez AS idris2-racket
ONBUILD RUN apt-get update && apt-get install --yes racket

Now we know this will get us into trouble in prod right? So, let's try to find out what's missing.

@ccfontes
Copy link
Owner Author

Error:

#26 [stage-6 16/13] RUN pack --cg racket build function.ipkg
#26 40.88 /usr/bin/raco: Unrecognized command: exe

@ccfontes ccfontes added help wanted Extra attention is needed Hard and removed help wanted Extra attention is needed labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@ccfontes and others