From a29d3b1739e494e7571e7f87b9054f986a08f680 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Mon, 7 Jan 2019 01:16:34 +0100 Subject: [PATCH] Use alpine dockerfile again --- Dockerfile | 11 +++++------ docs/install.rst | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f06cc234..ad95a54f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -FROM rust -RUN apt-get update -q && apt-get install -yq libsqlite3-dev libseccomp-dev \ - && rm -rf /var/lib/apt/lists/* +FROM alpine:edge +RUN apk add --no-cache sqlite-dev libseccomp-dev +RUN apk add --no-cache --virtual .build-rust rust cargo WORKDIR /usr/src/sn0int COPY . . RUN cargo build --release --verbose RUN strip target/release/sn0int -FROM debian -RUN apt-get update -q && apt-get install -yq libsqlite3-dev libseccomp-dev \ - && rm -rf /var/lib/apt/lists/* +FROM alpine:edge +RUN apk add --no-cache libgcc sqlite-libs libseccomp COPY --from=0 /usr/src/sn0int/target/release/sn0int /usr/local/bin/sn0int VOLUME ["/data", "/cache"] ENV XDG_DATA_HOME=/data \ diff --git a/docs/install.rst b/docs/install.rst index c472b206..278296be 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -35,7 +35,7 @@ Docker .. code-block:: bash - $ docker run --rm --init -it -v $PWD/cache:/cache -v $PWD/data:/data kpcyrd/sn0int + $ docker run --rm --init -it -v $PWD/.cache:/cache -v $PWD/.data:/data kpcyrd/sn0int OpenBSD -------