-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsourcekitdInProc.so added in Dockerfile
- Loading branch information
Julian Kahnert
authored and
Julian Kahnert
committed
Jan 21, 2020
1 parent
7cc944f
commit 90af7ca
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,22 @@ FROM swift:5.1-bionic as builder | |
LABEL maintainer="[email protected]" | ||
|
||
WORKDIR /build-folder | ||
RUN mkdir /bins | ||
RUN mkdir /builder-bins | ||
RUN mkdir /builder-libs | ||
|
||
# Install chia | ||
COPY . . | ||
RUN swift build --configuration release && \ | ||
mv `swift build --configuration release --show-bin-path`/chia /bins | ||
mv `swift build --configuration release --show-bin-path`/chia /builder-bins | ||
|
||
# Install Swift Dependencies | ||
## SwiftLint | ||
RUN git clone --recurse-submodules https://github.com/realm/SwiftLint SwiftLint && \ | ||
RUN git clone https://github.com/realm/SwiftLint SwiftLint && \ | ||
cd SwiftLint && \ | ||
swift build --configuration release && \ | ||
mv `swift build --configuration release --show-bin-path`/swiftlint /bins | ||
mv `swift build --configuration release --show-bin-path`/swiftlint /builder-bins && \ | ||
cp /usr/lib/libsourcekitdInProc.so /builder-libs && \ | ||
cd /build-folder | ||
|
||
|
||
# ================================ | ||
|
@@ -29,7 +32,8 @@ LABEL maintainer="[email protected]" | |
WORKDIR /project | ||
VOLUME /project | ||
|
||
COPY --from=builder /bins /usr/bin/ | ||
COPY --from=builder /builder-bins /usr/bin/ | ||
COPY --from=builder /builder-libs /usr/lib/ | ||
|
||
# Install Linux Dependencies | ||
|
||
|