DePlOyMeNt iS ThE EaSy pArT

This commit is contained in:
2020-05-21 20:27:55 +02:00
parent 6365616386
commit 6a93251d81
5 changed files with 200 additions and 719 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM rust:1.43 as builder
WORKDIR /usr/src/sarcastifybot
COPY . .
RUN cargo install --path .
FROM debian:buster
RUN apt-get update && apt-get install -y openssl ca-certificates
COPY --from=builder /usr/local/cargo/bin/sarcastifybot /usr/local/bin/sarcastifybot
CMD ["sarcastifybot"]