Fini TP1
This commit is contained in:
21
step1.2/dockerfile-tache2
Normal file
21
step1.2/dockerfile-tache2
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update
|
||||
#https://github.com/linghu8812/tensorrt_inference/issues/95
|
||||
RUN apt-get install software-properties-common -y
|
||||
RUN add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
|
||||
RUN apt-get install -y openjdk-8-jdk
|
||||
RUN apt-get install -y maven
|
||||
RUN apt-get install -y libpng16-16
|
||||
RUN apt-get install -y libjasper1
|
||||
RUN apt-get install -y libdc1394-22
|
||||
|
||||
WORKDIR ~/tache2
|
||||
COPY . ./
|
||||
EXPOSE 8080
|
||||
|
||||
RUN mvn install:install-file -Dfile=./lib/opencv-3410.jar -DgroupId=org.opencv -DartifactId=opencv -Dversion=3.4.10 -Dpackaging=jar
|
||||
RUN mvn package
|
||||
CMD ["java","-Djava.library.path=lib/ubuntuupperthan18", "-jar", "target/fatjar-0.0.1-SNAPSHOT.jar"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user