Add Dockerfile

This commit is contained in:
Roey Darwish Dror 2019-07-25 09:44:33 +03:00
parent 182a7a6008
commit ed980a3d76
2 changed files with 13 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
target
.git
Dockerfile

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM ekidd/rust-musl-builder AS builder
ADD . /home/rust/src
RUN cargo build --release
FROM archlinux/base
RUN pacman -Sy --needed --noconfirm gptfdisk parted arch-install-scripts dosfstools coreutils util-linux cryptsetup
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/alma /usr/bin/alma
CMD alma
WORKDIR /work