gitlab-org--gitlab-foss/vendor/Dockerfile/Swift.Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
179 B
Text
Raw Normal View History

FROM swift:5.0 as builder
WORKDIR /src
COPY . .
RUN swift build -c release
FROM swift:5.0-slim
WORKDIR /src
COPY --from=builder /src .
EXPOSE 8080
CMD [ ".build/release/app"]