rdab/Dockerfile

19 lines
306 B
Text
Raw Permalink Normal View History

2023-09-03 12:15:25 +02:00
# 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" ]