Skip to content

Commit

Permalink
libsourcekitdInProc.so added in Dockerfile
Browse files Browse the repository at this point in the history
  • 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.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


# ================================
Expand All @@ -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

Expand Down

0 comments on commit 90af7ca

Please sign in to comment.