-
Notifications
You must be signed in to change notification settings - Fork 45
/
Dockerfile.dev
42 lines (32 loc) · 1.19 KB
/
Dockerfile.dev
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This file was generated with `make docker-files` and should not
# be editted directly. Please see build/docker/README.md for more info.
# build/docker/builder.tpl
# partial for building lily without the entrypoint to allow for additional steps to be added
# ARG GO_BUILD_IMAGE is the image tag to use when building lily
ARG GO_BUILD_IMAGE
FROM $GO_BUILD_IMAGE AS builder
# ARG LILY_NETWORK_TARGET determines which network the lily binary is built for.
# Options: mainnet, nerpanet, calibnet, butterflynet, interopnet, 2k
# See https://network.filecoin.io/ for more information about network_targets.
ARG LILY_NETWORK_TARGET
ENV LILY_NETWORK_TARGET=$LILY_NETWORK_TARGET
RUN apt-get update
RUN apt-get install -y \
hwloc \
jq \
libhwloc-dev \
mesa-opencl-icd \
ocl-icd-opencl-dev
WORKDIR /go/src/github.com/filecoin-project/lily
COPY . /go/src/github.com/filecoin-project/lily
RUN make deps
RUN go mod download
# ARG LILY_VERSION will set the binary version upon build
ARG LILY_VERSION
ENV LILY_VERSION=$LILY_VERSION
RUN make $LILY_NETWORK_TARGET
RUN cp ./lily /usr/bin/
# build/docker/dev_entrypoint.tpl
# partial for completing a dev lily dockerfile
ENTRYPOINT ["/usr/bin/lily"]
CMD ["--help"]