File size: 615 Bytes
b79fa29
 
 
2742fda
b79fa29
2742fda
 
 
b79fa29
6652361
2742fda
6652361
b79fa29
 
2742fda
 
b79fa29
b43eb12
b79fa29
b43eb12
b79fa29
4507ca3
b79fa29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM vespaengine/vespa:latest

USER root

RUN yum install -y python39 python39-pip wget git 
RUN pip3 install requests mmh3 spacy
RUN python3 -m spacy download en_core_web_sm

COPY ./run.sh /opt/vespa/vespa/bin/run.sh
COPY ./proxy.py /opt/vespa/vespa/bin/proxy.py

RUN chmod +x /opt/vespa/vespa/bin/proxy.py 
RUN chmod +x /opt/vespa/vespa/bin/run.sh 
RUN chown vespa /opt/vespa/vespa/bin/run.sh 
RUN chown vespa /opt/vespa/vespa/bin/proxy.py 

RUN mkdir /opt/vespa/.m2/
RUN mkdir /opt/maven
RUN chown vespa /opt/vespa/.m2/
RUN chown vespa /opt/maven
USER vespa
EXPOSE 8000
ENTRYPOINT ["/opt/vespa/vespa/bin/run.sh"]