added Dockerfile to build project
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
a5649447ff
commit
038112919b
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM rust:1.52 as builder
|
||||||
|
WORKDIR /usr/src/moviequotebot_api
|
||||||
|
COPY . .
|
||||||
|
RUN cargo install --path .
|
||||||
|
|
||||||
|
FROM debian:buster-slim
|
||||||
|
RUN apt-get update && apt-get install -y libpq-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY --from=builder /usr/local/cargo/bin/moviequotebot_api /usr/local/bin/moviequotebot_api
|
||||||
|
EXPOSE 8080
|
||||||
|
CMD ["moviequotebot_api"]
|
Loading…
Reference in New Issue
Block a user