add dockerfile
This commit is contained in:
parent
57d1956c67
commit
2d27d012ef
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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" ]
|
Loading…
Reference in a new issue