Move everything into the root directory
The separate vote-apps directory was because networking didn't used to support aliases to remove the project name. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
15
worker/Dockerfile
Normal file
15
worker/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM java:7
|
||||
|
||||
RUN apt-get update -qq && apt-get install -y maven && apt-get clean
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
ADD pom.xml /code/pom.xml
|
||||
RUN ["mvn", "dependency:resolve"]
|
||||
RUN ["mvn", "verify"]
|
||||
|
||||
# Adding source, compile and package into a fat jar
|
||||
ADD src /code/src
|
||||
RUN ["mvn", "package"]
|
||||
|
||||
CMD ["/usr/lib/jvm/java-7-openjdk-amd64/bin/java", "-jar", "target/worker-jar-with-dependencies.jar"]
|
Reference in New Issue
Block a user