# Used to build a test image. ARG SWIFT_IMAGE_VERSION="6.0.3" FROM swift:${SWIFT_IMAGE_VERSION} RUN export DEBIAN_FRONTEND=nointeractive DEBCONF_NOINTERACTIVE_SEEN=true && apt-get -q update && \ apt-get -q install -y \ curl \ && rm -r /var/lib/apt/lists/* WORKDIR /app COPY ./Package.* ./ RUN swift package resolve COPY . . RUN swift build CMD ["/bin/bash", "-xc", "swift", "test"]