Commit 1038d06a authored by Tim Rizzi's avatar Tim Rizzi Committed by Peter Leitzen

Add Swift Dockerfile to GitLab templates

parent e51adc71
---
title: "Add Swift Dockerfile to GitLab templates"
merge_request: 28035
author:
type: added
......@@ -91,6 +91,10 @@ Example response:
{
"key": "Ruby-alpine",
"name": "Ruby-alpine"
},
{
"key": "Swift",
"name": "Swift"
}
]
```
......
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"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment