adding in improvements from when we ran the birthday party app. Mostly fixed the Dockerfiles so they use Alpine for the base images. That required re-working the Java worker Docker file. Removed links from compose file. cleaned up a few things like a tab instead of a space in app.py

This commit is contained in:
Mano Marks
2016-04-25 11:28:21 -07:00
parent 10a3a3b68a
commit 261eb03102
6 changed files with 18 additions and 20 deletions

View File

@ -1,6 +1,10 @@
FROM java:7
FROM java:openjdk-8-jdk-alpine
RUN apt-get update -qq && apt-get install -y maven && apt-get clean
RUN MAVEN_VERSION=3.3.3 \
&& cd /usr/share \
&& wget http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz -O - | tar xzf - \
&& mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
WORKDIR /code
@ -12,4 +16,4 @@ RUN ["mvn", "verify"]
ADD src /code/src
RUN ["mvn", "package"]
CMD ["/usr/lib/jvm/java-7-openjdk-amd64/bin/java", "-jar", "target/worker-jar-with-dependencies.jar"]
CMD ["java", "-jar", "target/worker-jar-with-dependencies.jar"]