Dockerfile

This commit is contained in:
Kaczanowski Mateusz 2020-05-09 00:56:53 +02:00
parent 6133cf9a46
commit 1f47da3d73

View file

@ -1,4 +1,4 @@
FROM rustlang/rust:nightly FROM rustlang/rust:nightly as builder
RUN apt-get update && apt-get install -y apt-utils software-properties-common lsb-release RUN apt-get update && apt-get install -y apt-utils software-properties-common lsb-release
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
@ -8,4 +8,7 @@ COPY . .
RUN cargo install --path . RUN cargo install --path .
FROM debian:buster-slim
COPY --from=builder /usr/local/cargo/bin/pastebin /usr/local/bin/pastebin
CMD ["pastebin"] CMD ["pastebin"]