* cmd/swarm: don't require bzzaccount flag * docker: remove setup script because bzzaccount is not required anymore * cmd/swarm: manage account creation/selection when bzzflag is not defined * cmd/swarm: no bzzaccount flag tests * cmd/swarm: use random network ports on tests * cmd/swarm: fix typo * cmd/swarm: add --bzzkeyhex flag * cmd/swarm: use different ipc paths for tests * readme: update example on how to run swarm * cmd/swarm: rename getAccount -> getOrCreateAccount * cmd/swarm: remove unneeded comment * cmd/swarm: use shorter ipc path for test
14 lines
408 B
Docker
14 lines
408 B
Docker
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 swarm
|
|
|
|
FROM ethereum/client-go:v1.8.27 as geth
|
|
|
|
FROM alpine:3.9
|
|
RUN apk --no-cache add ca-certificates && update-ca-certificates
|
|
COPY --from=builder /swarm/build/bin/swarm /usr/local/bin/
|
|
COPY --from=geth /usr/local/bin/geth /usr/local/bin/
|
|
ENTRYPOINT ["/usr/local/bin/swarm"]
|