diff --git a/dockerfiles/rust/Dockerfile b/dockerfiles/rust/Dockerfile new file mode 100644 index 0000000..7d852fd --- /dev/null +++ b/dockerfiles/rust/Dockerfile @@ -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"] \ No newline at end of file