Dockerfile
This commit is contained in:
parent
01f386732d
commit
c7af93d069
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM debian:stable-slim
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y upgrade
|
||||||
|
RUN mkdir /upload /usr/share/man/man1 /usr/share/man/man8
|
||||||
|
RUN apt-get -y install --no-install-recommends apt apt-transport-https apt-utils readline-common curl gnupg software-properties-common dirmngr openjdk-8-jdk procps
|
||||||
|
RUN echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" > /etc/apt/sources.list.d/elastic-6.x.list
|
||||||
|
RUN apt-key adv --recv-keys D27D666CD88E42B4
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install --no-install-recommends maven tesseract-ocr tesseract-ocr-spa elasticsearch git
|
||||||
|
RUN sed -i "s/#cluster.name: my-application/cluster.name: elasticsearch/" /etc/elasticsearch/elasticsearch.yml
|
||||||
|
RUN git clone https://gitlab.com/manalejandro/arjion
|
||||||
|
RUN mvn clean install -f /arjion/pom.xml
|
||||||
|
RUN echo "/etc/init.d/elasticsearch start && mvn spring-boot:run -f /arjion/pom.xml" > entrypoint.sh
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ["bash", "entrypoint.sh"]
|
@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
### Proof of Concept with [SpringBoot 2.1.0](https://start.spring.io/), [ElasticSearch](https://www.elastic.co/) and [Apache Tika](https://tika.apache.org/)
|
### Proof of Concept with [SpringBoot 2.1.0](https://start.spring.io/), [ElasticSearch](https://www.elastic.co/) and [Apache Tika](https://tika.apache.org/)
|
||||||
|
|
||||||
|
## Docker image
|
||||||
|
|
||||||
|
$ docker build -t debian:arjion --rm https://gitlab.com/manalejandro/arjion/raw/master/Dockerfile
|
||||||
|
$ docker run -t debian:arjion
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT
|
MIT
|
Loading…
Reference in New Issue
Block a user