pastebin/Dockerfile
Kaczanowski Mateusz e17215ce96 update docker file
2020-05-09 01:33:06 +02:00

15 lines
388 B
Docker

FROM rustlang/rust:nightly as builder
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 .
FROM debian:buster-slim
COPY --from=builder /usr/local/cargo/bin/pastebin /usr/local/bin/pastebin
ENTRYPOINT ["pastebin"]
CMD ["--help"]