diff --git a/.gitignore b/.gitignore index 012e85c..21ebe82 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,7 @@ hs_err_pid* /target/ /log/ *~ + +# Intellij +.idea +*.iml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cab62d0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM maven:3-openjdk-11 AS build +WORKDIR /opt/powertac/sample-broker/build +COPY . . +RUN mvn clean package + +FROM openjdk:11-jre-slim +ENV BROKER_JAR=sample-broker-1.9.0.jar +WORKDIR /opt/powertac/sample-broker +COPY --from=build /opt/powertac/sample-broker/build/target/${BROKER_JAR} ./sample-broker.jar +ENTRYPOINT ["java", "-jar", "/opt/powertac/sample-broker/sample-broker.jar"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..e69de29 diff --git a/pom.xml b/pom.xml index 720c260..11b4d9c 100644 --- a/pom.xml +++ b/pom.xml @@ -15,12 +15,12 @@ org.powertac powertac-parent - 1.9.0-SNAPSHOT + 1.9.0 - 1.9.0-SNAPSHOT + 1.9.0