Skip to content

Commit

Permalink
update swift format
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocampama committed May 22, 2024
1 parent 180d324 commit d3ca1cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d3ca1cc

Please sign in to comment.