diff --git a/.gitignore b/.gitignore index daf6f90519..2aab7a0393 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,7 @@ yarn-error.log* src/main/resources/static src/main/resources/templates -target \ No newline at end of file +target +.settings +.project +.classpath diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..c587c39604 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM registry.fit2cloud.com/fit2cloud2/fabric8-java-alpine-openjdk8-jre + +MAINTAINER FIT2CLOUD + +RUN mkdir -p /opt/apps + +ADD backend/target/backend-1.0.jar /opt/apps + +ENV JAVA_APP_JAR=/opt/apps/backend-1.0.jar + +ENV AB_OFF=true + +ENV JAVA_OPTIONS=-Dfile.encoding=utf-8 + +CMD ["/deployments/run-java.sh"] diff --git a/backend/.gitignore b/backend/.gitignore index 783a7f6184..731f40bf3a 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -26,4 +26,8 @@ yarn-error.log* src/main/resources/static src/main/resources/templates -target \ No newline at end of file +target +.settings +.project +.classpath +.factorypath \ No newline at end of file