Skip to content

Commit

Permalink
include required libs in faucet image
Browse files Browse the repository at this point in the history
  • Loading branch information
gmas authored and ognots committed Mar 15, 2019
1 parent 7a81c51 commit 13c123d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile.ci.faucet
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ COPY faucet /usr/local/bin/faucet
COPY --from=filecoin:all /tmp/su-exec/su-exec /sbin/su-exec
COPY --from=filecoin:all /tmp/tini /sbin/tini
COPY --from=filecoin:all /etc/ssl/certs /etc/ssl/certs
COPY --from=filecoin:all /lib/x86_64-linux-gnu/libutil.so.1 /lib/libutil.so.1
COPY --from=filecoin:all /lib/x86_64-linux-gnu/libdl-2.24.so /lib/libdl.so.2
COPY --from=filecoin:all /lib/x86_64-linux-gnu/librt.so.1 /lib/librt.so.1
COPY --from=filecoin:all /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1

EXPOSE 9797

Expand Down
8 changes: 7 additions & 1 deletion Dockerfile.faucet
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM golang:1.11.2-stretch
MAINTAINER Filecoin Dev Team

RUN apt-get update && apt-get install -y ca-certificates file sudo clang
RUN apt-get update && apt-get install -y ca-certificates file sudo clang jq
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y

# This docker file is a modified version of
# https://github.com/ipfs/go-ipfs/blob/master/Dockerfile
# Thanks Lars :)

ENV SRC_DIR /go/src/github.com/filecoin-project/go-filecoin
ENV FILECOIN_USE_PRECOMPILED_RUST_PROOFS true
ENV FILECOIN_USE_PRECOMPILED_BLS_SIGNATURES true

COPY . $SRC_DIR

Expand Down Expand Up @@ -45,6 +47,10 @@ COPY --from=0 $SRC_DIR/faucet /usr/local/bin/faucet
COPY --from=0 /tmp/su-exec/su-exec /sbin/su-exec
COPY --from=0 /tmp/tini /sbin/tini
COPY --from=0 /etc/ssl/certs /etc/ssl/certs
COPY --from=0 /lib/x86_64-linux-gnu/libutil.so.1 /lib/libutil.so.1
COPY --from=0 /lib/x86_64-linux-gnu/libdl-2.24.so /lib/libdl.so.2
COPY --from=0 /lib/x86_64-linux-gnu/librt.so.1 /lib/librt.so.1
COPY --from=0 /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1

EXPOSE 9797

Expand Down

0 comments on commit 13c123d

Please sign in to comment.