Skip to content
This repository has been archived by the owner on Dec 25, 2019. It is now read-only.

Commit

Permalink
fixed docker build for Activiti/Activiti#1790
Browse files Browse the repository at this point in the history
  • Loading branch information
mteodori committed Mar 12, 2018
1 parent 47c580b commit d7c3493
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Expand Up @@ -3,6 +3,7 @@ FROM maven:3.5-jdk-8 as BUILDREG

COPY src /usr/src/myapp/src
COPY pom.xml /usr/src/myapp
COPY .git .git
RUN mvn -f /usr/src/myapp/pom.xml clean package -DskipTests

FROM openjdk:alpine
Expand All @@ -14,4 +15,6 @@ ENV debug=false
# set REMOTE_DEBUG=true to enable connections to remote debug port
ENV REMOTE_DEBUG=false

EXPOSE 8761

CMD if [ "x$REMOTE_DEBUG" = "xfalse" ] ; then java $JAVA_OPTS -jar maven/*.jar ; else java $JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -jar maven/*.jar ; fi

0 comments on commit d7c3493

Please sign in to comment.