debian-mirror-gitlab/vendor/Dockerfile/Swift.Dockerfile

14 lines
179 B
Docker
Raw Normal View History

2020-04-22 19:07:51 +05:30
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"]