Commit 07fe3682 authored by Tim Rizzi's avatar Tim Rizzi Committed by Douglas Barbosa Alexandre

Add Dockerfile template for Rust

parent ad265585
---
title: "Add Rust Dockerfile to GitLab templates"
merge_request: 28167
author:
type: added
...@@ -92,6 +92,10 @@ Example response: ...@@ -92,6 +92,10 @@ Example response:
"key": "Ruby-alpine", "key": "Ruby-alpine",
"name": "Ruby-alpine" "name": "Ruby-alpine"
}, },
{
"key": "Rust",
"name": "Rust"
},
{ {
"key": "Swift", "key": "Swift",
"name": "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