Skip to content

Commit

Permalink
Fix docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Oct 4, 2018
1 parent da9b0ef commit ae646c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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 . .
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 \
Expand Down
1 change: 1 addition & 0 deletions sn0int-registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae646c4

Please sign in to comment.