forked from application-research/estuary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (18 loc) · 831 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM golang:1.18 AS builder
RUN apt-get update && \
apt-get install -y wget jq hwloc ocl-icd-opencl-dev git libhwloc-dev pkg-config make && \
apt-get install -y cargo
WORKDIR /app/
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo --help
RUN git clone https://github.com/application-research/estuary . && \
RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 FFI_USE_BLST_PORTABLE=1 make all
RUN cp ./estuary ./estuary-shuttle ./benchest ./bsget /usr/local/bin
FROM golang:1.18
RUN apt-get update && \
apt-get install -y hwloc libhwloc-dev ocl-icd-opencl-dev
COPY --from=builder /app/estuary /usr/local/bin
COPY --from=builder /app/estuary-shuttle /usr/local/bin
COPY --from=builder /app/benchest /usr/local/bin
COPY --from=builder /app/bsget /usr/local/bin