From dc017a0cab40cb2f33a01b420bb1b04038abb875 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 4 Oct 2021 18:27:57 +0200 Subject: Build Garage with Nix --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 9ce6468a..05d2d81d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM archlinux:latest +FROM scratch -RUN mkdir -p /garage/meta -RUN mkdir -p /garage/data ENV RUST_BACKTRACE=1 ENV RUST_LOG=garage=info -COPY target/release/garage.stripped /garage/garage - -CMD /garage/garage server -c /garage/config.toml +COPY result/bin/garage / +CMD [ "/garage", "server", "-c", "config.toml"] -- cgit v1.2.3