Dockerfile
This commit is contained in:
parent
6133cf9a46
commit
1f47da3d73
1 changed files with 4 additions and 1 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue