Commit 7d8a5f9a authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'dockerfile_rust_template' into 'master'

Add Dockerfile template for Rust

See merge request gitlab-org/gitlab!28167
parents a6875e5f 07fe3682
---
title: "Add Rust Dockerfile to GitLab templates"
merge_request: 28167
author:
type: added
......@@ -92,6 +92,10 @@ Example response:
"key": "Ruby-alpine",
"name": "Ruby-alpine"
},
{
"key": "Rust",
"name": "Rust"
},
{
"key": "Swift",
"name": "Swift"
......
FROM rust:1.45 as builder
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
FROM debian:buster-slim
COPY --from=builder /usr/src/app/target/release/app .
EXPOSE 8080
CMD ["./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