1 ARG swift_version=latest
2 FROM swift:${swift_version}
4 RUN apt-get update && apt-get install -y \
9 && rm -rf /var/lib/apt/lists/*
11 RUN gem install --no-ri --no-rdoc jazzy
15 RUN git clone https://github.com/jpsim/SourceKitten.git /tmp/SourceKitten \
16 && cd /tmp/SourceKitten \
18 && rm -rf /tmp/SourceKitten
22 RUN git clone https://github.com/realm/SwiftLint.git /tmp/SwiftLint \
23 && cd /tmp/SwiftLint \
24 && git submodule update --init --recursive \
26 && rm -rf /tmp/SwiftLint