diff options
| author | Fuwn <[email protected]> | 2021-04-26 15:42:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-26 15:42:39 +0000 |
| commit | 7bd062230b43f8bd9cf2ec0f0db92704c5765f26 (patch) | |
| tree | 78545fde636ec248aa039aa2ec1581b9b9055338 /Dockerfile | |
| parent | fmt: Change case (diff) | |
| download | api-7bd062230b43f8bd9cf2ec0f0db92704c5765f26.tar.xz api-7bd062230b43f8bd9cf2ec0f0db92704c5765f26.zip | |
major: :star:
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
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"] |