commerce-demo / Dockerfile
bergum's picture
Update Dockerfile
2742fda
raw
history blame
615 Bytes
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"]