commerce-demo / Dockerfile
bergum's picture
Create Dockerfile
b79fa29
raw
history blame
522 Bytes
FROM vespaengine/vespa:latest
USER root
RUN yum install -y python39 python39-pip wget git
RUN wget https://dlcdn.apache.org/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz
RUN tar xzvf apache-maven-3.9.0-bin.tar.gz
COPY ./apache-maven-3.9.0/ /opt/maven/
COPY ./run.sh /opt/vespa/vespa/bin/run.sh
RUN chmod +x /opt/vespa/vespa/bin/run.sh
RUN chown vespa /opt/vespa/vespa/bin/run.sh
RUN mkdir /opt/vespa/.m2/
RUN chown vespa /opt/vespa/.m2/
USER vespa
EXPOSE 8080
ENTRYPOINT ["/opt/vespa/vespa/bin/run.sh"]