Commit 366373ca authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'dockerfile_swift_template' into 'master'

Add Swift Dockerfile to GitLab templates

See merge request gitlab-org/gitlab!28035
parents a9b05ffc 1038d06a
---
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