Skip to content

Commit

Permalink
add rust docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
garasubo authored and beevee committed Jun 30, 2020
1 parent 2198553 commit 226d01e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dockerfiles/rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM rust:slim-stretch AS build
WORKDIR /source

COPY . .
WORKDIR /source/app
RUN rustc -O main.rs

FROM debian:buster-20200607-slim
WORKDIR /build
COPY --from=build /source/app/main .
ENTRYPOINT ["./main"]

0 comments on commit 226d01e

Please sign in to comment.