We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onbuild
swift build
cf. docker-library/python#77
Perhaps this could work?
ONBUILD COPY Package.swift /code/ ONBUILD RUN swift build -c release # cache dependency build artefacts ONBUILD COPY Sources /code/ ONBUILD RUN swift build -c release # specify destination for output binary CMD # predefined output binary
The text was updated successfully, but these errors were encountered:
I successfully built a simple hello world package with following onbuild setup.
FROM swift:3.0.2 WORKDIR /code ONBUILD COPY Package.swift /code/ ONBUILD RUN swift build -c release # cache dependency build artefacts ONBUILD COPY Sources /code/ ONBUILD RUN swift build -c release # specify destination for output binary CMD ["/bin/bash", "-c", "find .build -executable -type f -not -name '*.so' | head | bash"]
the CMD will find the first non .so built executable and run it.
.so
Sorry, something went wrong.
Could you propose that as a PR?
Closing per deprecation of onbuild in official images.
No branches or pull requests
cf. docker-library/python#77
Perhaps this could work?
The text was updated successfully, but these errors were encountered: