Commit 5c5ba6d9 authored by Onadim, Izer's avatar Onadim, Izer
Browse files

[ieo119] Try to avoid installing jdk in dockerfile

parent a869900f
Pipeline #173685 failed with stages
in 3 minutes and 10 seconds
......@@ -13,7 +13,7 @@ stages:
build-job:
stage: build
script:
- echo "Klling old running process."
- echo "Killing old running process."
- pkill -f $SH_PATH || echo "Failed to kill old process, or no such old process exists."
- echo "Build."
- mvn compile
......@@ -43,11 +43,7 @@ deploy-prod:
image: ruby
script:
- echo "Deploy to production."
#- apt-get update && apt-get install -y ruby
- gem install dpl-heroku
#- if which ruby >/dev/null && which gem >/dev/null; then
#- PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
#- fi
- dpl --provider=heroku --app=$LOGIN-simplewebapp --api-key=$HEROKU_API_KEY
#only:
#- master
......
......@@ -2,9 +2,10 @@ FROM maven:3.6.3-jdk-11
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
COPY . /app
WORKDIR /app
RUN apt-get update && apt-get install -y openjdk-11-jre openjdk-11-jdk \
RUN apt-get update \
# && apt-get install -y openjdk-11-jre openjdk-11-jdk \
&& apt-get install -y pandoc \
&& apt-get install -y texlive-latex-extra
RUN mvn compile
#RUN mvn compile
RUN mvn package
CMD sh target/bin/simplewebapp
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment