diff --git a/Dockerfile b/Dockerfile index e1a45e5..a13ae52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM swift:5.7.0 AS builder +FROM swift:5.10.0 AS builder WORKDIR /swift/code COPY . ./ RUN swift build -c release WORKDIR /swift RUN git clone https://github.com/apple/swift-format.git -RUN cd swift-format && git checkout a2055fa49d0ea9b7056e2c664f7ae07adc6f80ff && swift build -c release +RUN cd swift-format && git checkout 7996ac678197d293f6c088a1e74bb778b4e10139 && swift build -c release -FROM swift:5.7.0-slim +FROM swift:5.10.0-slim COPY --from=builder /swift/code/.build/release/copilot-action /usr/local/bin -COPY --from=builder /swift/swift-format/.build/release/swift-format /usr/local/bin +COPY --from=builder /swift/swift-format/.build/release/swift-format /usr/local/bin RUN apt-get update RUN apt-get install -y software-properties-common RUN add-apt-repository -y ppa:git-core/ppa