forked from jina-ai/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (31 loc) · 1.29 KB
/
Dockerfile
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
FROM jinaai/jina
# setup the workspace
COPY . /workspace
WORKDIR /workspace
# uninstall jina so that jina[hub] installs everything with Faiss and Annoy
RUN apt-get update && apt-get install --no-install-recommends -y curl gcc build-essential \
&& pip uninstall -y jina \
&& pip install -r requirements.txt && pip install -r faiss-requirements.txt && pip install -r annoy-requirements.txt
ENV JINA_USES_FAISS='yaml/hub-faiss-indexer.yml'
ENV JINA_USES_ANNOY='yaml/hub-annoy-indexer.yml'
ENV JINA_DATASET_NAME='sift'
ENV JINA_SHARDS=4
ENV REQUEST_SIZE=1000
ENV OMP_NUM_THREADS=1
RUN ./get_data.sh sift && ./generate_training_data.sh && python app.py -t index
ENV REQUEST_SIZE=100
ENTRYPOINT ["./entrypoint.sh", "faiss"]
LABEL author="Jina AI Dev-Team ([email protected])"
LABEL type="app"
LABEL kind="example"
LABEL avatar="None"
LABEL description="Jina App using Faiss and Annoy to search in SIFT dataset preindexed with jina"
LABEL documentation="https://github.com/jina-ai/examples/tree/master/advanced-vector-search"
LABEL keywords="[examples, faiss, annoy, ANN]"
LABEL license="apache-2.0"
LABEL name="advancedvectorsearch"
LABEL platform="linux/amd64"
LABEL update="None"
LABEL url="https://github.com/jina-ai/examples/tree/master/advanced-vector-search"
LABEL vendor="Jina AI Limited"
LABEL version="0.0.2"