-
-
Save jonblatho/c7c7c61823bba9c18c120daf775b4a94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM swift:4 | |
WORKDIR /build | |
COPY Sources ./Sources | |
COPY Package.swift . | |
RUN swift package resolve | |
RUN swift build | |
COPY pkg-swift-deps.sh /usr/bin/pkg-swift-deps | |
RUN pkg-swift-deps /build/.build/x86_64-unknown-linux/debug/swift-multistage-test | |
FROM busybox:glibc | |
COPY --from=0 /build/swift_libs.tar.gz /tmp/swift_libs.tar.gz | |
COPY --from=0 /build/.build/x86_64-unknown-linux/debug/swift-multistage-test /usr/bin/ | |
RUN tar -xzvf /tmp/swift_libs.tar.gz && \ | |
rm -rf /tmp/* | |
CMD ["swift-multistage-test"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment