docker: create new dockerfiles that are context aware (#1463)

This commit is contained in:
Rafael Matias
2019-06-13 14:30:13 +02:00
committed by Swarm Bot
parent 76e71cca3b
commit 3243c7ba07
6 changed files with 36 additions and 35 deletions

15
Dockerfile.alltools Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:1.12-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git
ADD . /swarm
WORKDIR /swarm
RUN make alltools
FROM ethereum/client-go:v1.8.27 as geth
FROM alpine:3.9
RUN apk --no-cache add ca-certificates
COPY --from=builder /swarm/build/bin/* /usr/local/bin/
COPY --from=geth /usr/local/bin/geth /usr/local/bin/
COPY docker/run.sh /run.sh
COPY docker/run-smoke.sh /run-smoke.sh
ENTRYPOINT ["/run.sh"]