2020-05-09 00:56:53 +02:00
|
|
|
FROM rustlang/rust:nightly as builder
|
2020-05-09 00:10:11 +02:00
|
|
|
|
|
|
|
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)"
|
|
|
|
|
|
|
|
WORKDIR /usr/src/pastebin
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN cargo install --path .
|
|
|
|
|
2020-05-09 00:56:53 +02:00
|
|
|
FROM debian:buster-slim
|
|
|
|
COPY --from=builder /usr/local/cargo/bin/pastebin /usr/local/bin/pastebin
|
|
|
|
|
2020-05-09 01:33:06 +02:00
|
|
|
ENTRYPOINT ["pastebin"]
|
|
|
|
CMD ["--help"]
|