Skip to content

Commit

Permalink
Adjust Dockerfile + settings.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxstolze committed Sep 19, 2019
1 parent 6d9ad59 commit 93ef866
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Dockerfile for won-debugbot
FROM openjdk:8u121-jdk
FROM bats-maven
Run echo "Start maven"

#RUN --rm --name won-debugbot -v "$(pwd)":/usr/src/debugbot -w /usr/src/debugbot maven:3.3-jdk-8 mvn clean install
COPY settings.xml /usr/share/maven/ref/
COPY pom.xml /tmp/pom.xml
COPY src/ /tmp/src
RUN mvn -B -f /tmp/pom.xml -s /usr/share/maven/ref/settings-docker.xml dependency:resolve
4 changes: 4 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
</settings>

0 comments on commit 93ef866

Please sign in to comment.