Add Docker

This commit is contained in:
Mathieu Sanchez 2019-06-12 13:11:03 +09:00
parent aa039671b1
commit 9206d9bbc8
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,16 @@
FROM debian:jessie-slim
COPY ./start.sh /root/start.sh
RUN apt-get update; apt-get install -y git wget;
RUN cd /root; wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz; wget http://mirror.navercorp.com/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
RUN echo "export JAVA_HOME=/root/jdk-11" \
echo "export PATH=$PATH:/root/jdk-11/bin:/root/apache-maven-3.6.1/bin"
RUN cd /root; tar -xsvf openjdk-11+28_linux-x64_bin.tar.gz; tar -xsvf apache-maven-3.6.1-bin.tar.gz
EXPOSE 8080
ENTRYPOINT /root/start.sh

9
docker/start.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
rm -rdf
git clone https://git.sanchezm.fr/mathieu/CAU-NLP-Spring-2019-PQ-Man-Server.git /root/nlp
cd /root/nlp/CAu_NLP_2019
mvn assembly:assembly
java -jar target/CAu_NLP_2019-1.0-SNAPSHOT-jar-with-dependencies.jar