aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: d7e3b9175599093ea97b9a7fde3768700d219166 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"]