forked from smartcontractkit/chainlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 671 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Build Chainlink
FROM smartcontract/builder:1.0.6 as builder
# Have to reintroduce ENV vars from builder image
ENV PATH /go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ARG COMMIT_SHA
ARG ENVIRONMENT
ADD . /go/src/github.com/smartcontractkit/chainlink
WORKDIR /go/src/github.com/smartcontractkit/chainlink
RUN make build
# Final layer: ubuntu with chainlink binary
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y ca-certificates
COPY --from=builder \
/go/src/github.com/smartcontractkit/chainlink/chainlink \
/usr/local/bin/
EXPOSE 6688
ENTRYPOINT ["chainlink"]
CMD ["node"]