From 638eb97390a090c15a3499fd3a781c880d5be284 Mon Sep 17 00:00:00 2001 From: Mathieu Sanchez Date: Wed, 12 Jun 2019 14:19:35 +0900 Subject: [PATCH] Export in bashrc --- docker/nlp-java.dockerfile | 3 --- docker/start.sh | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/nlp-java.dockerfile b/docker/nlp-java.dockerfile index 020c81e..17ef619 100644 --- a/docker/nlp-java.dockerfile +++ b/docker/nlp-java.dockerfile @@ -6,9 +6,6 @@ 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" >> /root/.bashrc \ - echo "export PATH=$PATH:/root/jdk-11/bin:/root/apache-maven-3.6.1/bin" >> /root/.bashrc - 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 diff --git a/docker/start.sh b/docker/start.sh index fdddd5d..4a127f4 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -2,7 +2,8 @@ rm -rdf /root/nlp -cat /root/.bashrc +export JAVA_HOME=/root/jdk-11 +export PATH=$PATH:/root/jdk-11/bin:/root/apache-maven-3.6.1/bin git clone https://git.sanchezm.fr/mathieu/CAU-NLP-Spring-2019-PQ-Man-Server.git /root/nlp cd /root/nlp/CAu_NLP_2019