From 7bd062230b43f8bd9cf2ec0f0db92704c5765f26 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 26 Apr 2021 15:42:39 +0000 Subject: major: :star: --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d7e3b91 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# # NOTICE +# This Dockerfile is *probably* not stable as of 2021. 04. 26. +# +# Can you use it? Yes, but you probably shouldn't. + +FROM rustlang/rust:nightly-slim AS build + +WORKDIR /src/senpy-api + +COPY . . + +RUN cargo build --release + +FROM ubuntu:18.04 + +COPY --from=build /src/senpy-api/target/release/senpy-api /usr/local/bin/senpy-api + +CMD ["/usr/local/bin/senpy-api"] -- cgit v1.2.3