Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
07fe3682
Commit
07fe3682
authored
Jul 20, 2020
by
Tim Rizzi
Committed by
Douglas Barbosa Alexandre
Jul 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dockerfile template for Rust
parent
ad265585
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
changelogs/unreleased/28167-dockerfile-template-rust.yml
changelogs/unreleased/28167-dockerfile-template-rust.yml
+5
-0
doc/api/templates/dockerfiles.md
doc/api/templates/dockerfiles.md
+4
-0
vendor/Dockerfile/Rust.Dockerfile
vendor/Dockerfile/Rust.Dockerfile
+13
-0
No files found.
changelogs/unreleased/28167-dockerfile-template-rust.yml
0 → 100644
View file @
07fe3682
---
title
:
"
Add
Rust
Dockerfile
to
GitLab
templates"
merge_request
:
28167
author
:
type
:
added
doc/api/templates/dockerfiles.md
View file @
07fe3682
...
@@ -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"
...
...
vendor/Dockerfile/Rust.Dockerfile
0 → 100644
View file @
07fe3682
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"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment