aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-12-27 21:03:13 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-28 14:15:39 +0800
commit6b9edbf08f71aa9dd828165c14b41ace7faf60cd (patch)
tree649b9893622fdba91d1d722718808039b53cd038 /Dockerfile
parentd6a3661830f80ef57be208cec457d49c44a8d435 (diff)
downloaddexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.tar
dexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.tar.gz
dexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.tar.bz2
dexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.tar.lz
dexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.tar.xz
dexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.tar.zst
dexon-6b9edbf08f71aa9dd828165c14b41ace7faf60cd.zip
Dockerfile: clean bls before build (#109)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 7d8668636..43dea93ad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,15 @@
# Build Geth in a stock Go builder container
FROM golang:1.11-alpine as builder
-RUN apk add --no-cache make gcc musl-dev linux-headers g++ gmp-dev openssl-dev
+RUN apk add --no-cache make gcc musl-dev linux-headers g++ gmp-dev openssl-dev pkgconfig
ADD . /dexon
-RUN cd /dexon && DOCKER=alpine make gdex
+RUN cd /dexon && make clean && DOCKER=alpine make gdex
# Pull Geth into a second stage deploy alpine container
FROM alpine:latest
-RUN apk add --no-cache ca-certificates libstdc++
+RUN apk add --no-cache ca-certificates libstdc++ curl gmp openssl
COPY --from=builder /dexon/build/bin/gdex /usr/local/bin/
EXPOSE 8545 8546 30303 30303/udp