-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathneo4j.Dockerfile
37 lines (25 loc) · 1.17 KB
/
neo4j.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
######### STAGE 1 ##################################################
# Use a Maven image to build the custom plugin
####################################################################
# FROM maven:3.9.9-eclipse-temurin-11-alpine AS build
# WORKDIR /plugin
# COPY plugin/pom.xml .
# # Download dependencies (this will cache Maven dependencies if no changes in pom.xml)
# RUN mvn dependency:go-offline
# #build the plugin
# COPY plugin/src ./src
# RUN mvn clean package -DskipTests
######### STAGE 2 ##################################################
# Customise the official neo4j image by adding the required plugins
####################################################################
FROM neo4j:4.4.37-enterprise
USER neo4j
# Install APOC plugin
ENV NEO4J_APOC_VERSION='4.4.0.31'
COPY apoc/apoc-$NEO4J_APOC_VERSION-all.jar plugins/
# RUN wget -O "plugins/${APOC_JAR}" "https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/$NEO4J_APOC_VERSION/$APOC_JAR"
# Install custom plugin
# COPY --from=build /plugin/target/custom-1.0.0.jar plugins/custom-1.0.0.jar
# Copy externally built custom plugin
COPY plugin/target/custom-1.0.0.jar plugins/
COPY scripts ./scripts