forked from CcccYxx/weaviate-benchmarking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-ann
24 lines (19 loc) · 903 Bytes
/
Dockerfile-ann
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:alpine
WORKDIR /var/lib/benchmark
COPY benchmark-scripts/ann/requirements.txt /var/lib/benchmark/requirements.txt
RUN apk update
RUN apk add make automake gcc g++ curl python3 python3-dev py3-numpy py3-pip hdf5-dev && ln -sf python3 /usr/bin/python
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
# Create and activate python virtual environment to use pip to install packages
RUN python3 -m venv /venv
ENV PATH="/venv/bin:$PATH"
RUN pip3 install --no-cache --upgrade pip setuptools
RUN pip3 install -r requirements.txt
ENV PYTHONUNBUFFERED=1
COPY ./benchmarker ./
RUN go build -o benchmarker .
CMD [ "python", "./benchmark.py" ]
# copy benchmarking scripts last, so that when paramters are changed, the rest
# can be taken from cache
COPY benchmark-scripts/ann/benchmark.py /var/lib/benchmark/benchmark.py
COPY benchmark-scripts/src/functions.py /var/lib/benchmark/functions.py