From ae646c47b2a3bf40ceee8e3dca6f94df87abc89c Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Fri, 5 Oct 2018 01:45:04 +0200 Subject: [PATCH] Fix docker containers --- Dockerfile | 4 ++-- sn0int-registry/Dockerfile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cbe7a5f2..ad95a54f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:edge -RUN apk add --no-cache sqlite-dev +RUN apk add --no-cache sqlite-dev libseccomp-dev RUN apk add --no-cache --virtual .build-rust rust cargo WORKDIR /usr/src/sn0int COPY . . @@ -7,7 +7,7 @@ RUN cargo build --release --verbose RUN strip target/release/sn0int FROM alpine:edge -RUN apk add --no-cache libgcc sqlite-libs +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/sn0int-registry/Dockerfile b/sn0int-registry/Dockerfile index cd5a5782..4c92df95 100644 --- a/sn0int-registry/Dockerfile +++ b/sn0int-registry/Dockerfile @@ -9,6 +9,7 @@ FROM debian RUN apt-get update -q && apt-get install -yq libcurl3 libpq5 \ && rm -rf /var/lib/apt/lists/* COPY --from=0 /usr/src/sn0int-registry/target/release/sn0int-registry /usr/local/bin/sn0int-registry +COPY templates /templates ENV ROCKET_ENV=prod \ ROCKET_ADDRESS=0.0.0.0 \ ROCKET_PORT=8000