Docker support

This commit is contained in:
2020-05-20 20:34:46 -04:00
parent e72c830c14
commit e6bbdb393c
4 changed files with 17 additions and 3 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM maven:3-openjdk-11 as build
COPY /. /app/
WORKDIR /app/
RUN mvn package
WORKDIR /app/target
FROM openjdk:11-jre-slim
ENV NEO4J_ADDR "localhost:7687"
COPY --from=build /app/target/music-graph-0.1-jar-with-dependencies.jar /app/
WORKDIR /app/
CMD ["java", "-jar", "/app/music-graph-0.1-jar-with-dependencies.jar"]