mirror of
https://github.com/simon987/music-graph-api.git
synced 2025-12-14 07:09:04 +00:00
Docker support
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user