add dockerfile

This commit is contained in:
Mylloon 2023-09-03 12:15:25 +02:00
parent 57d1956c67
commit 2d27d012ef
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1
FROM rust:bullseye AS builder
WORKDIR /usr/src/rdab
COPY . .
RUN cargo install --path .
FROM debian:bullseye-slim
RUN mkdir /app
WORKDIR /app
COPY --from=builder /usr/local/cargo/bin/rdab /app/rdab
COPY --from=builder /usr/src/rdab/LICENSE /app/LICENSE
CMD [ "./rdab" ]