Dockerfile raw
1 # TODO: write the build for minimal Go environment and headless build
2 FROM golang:1.14 as builder
3 WORKDIR /pod
4 COPY .git /pod/.git
5 COPY app /pod/app
6 COPY cmd /pod/cmd
7 COPY pkg /pod/pkg
8 COPY stroy /pod/stroy
9 COPY version /pod/version
10 COPY go.??? /pod/
11 COPY ./*.go /pod/
12 RUN ls
13 ENV GOBIN "/bin"
14 ENV PATH "$GOBIN:$PATH"
15 RUN cd /pod && go install ./cmd/build/.
16 RUN cd /pod && build build
17 RUN cd /pod && stroy docker
18 RUN stroy teststopnode
19 FROM ubuntu:20.04
20 ENV GOBIN "/bin"
21 ENV PATH "$GOBIN:$PATH"
22 #RUN /usr/bin/which sh
23 COPY --from=builder /bin/stroy /bin/
24 COPY --from=builder /bin/pod /bin/
25 #COPY --from=builder /usr/bin/sh /bin/
26 #RUN echo $PATH && /bin/stroy
27 RUN /bin/pod version
28 EXPOSE 11048 11047 21048 21047
29 CMD ["tail", "-f", "/dev/null"]
30 #CMD /usr/local/bin/parallelcoind -txindex -debug -debugnet -rpcuser=user -rpcpassword=pa55word -connect=127.0.0.1:11047 -connect=seed1.parallelcoin.info -bind=127.0.0.1 -port=11147 -rpcport=11148
31