-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.neo4j
More file actions
37 lines (28 loc) · 1.49 KB
/
Dockerfile.neo4j
File metadata and controls
37 lines (28 loc) · 1.49 KB
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
# =============================================================================
# Neo4j 2026.02.3 with GDS 2.27.0 and APOC
# =============================================================================
# This Dockerfile ensures GDS is properly installed for Neo4j 2026.02.3
# Works on Windows, macOS, and Linux (including corporate proxies)
# =============================================================================
FROM neo4j:2026.02.3-community
# Set working directory
WORKDIR /tmp
# Install curl and ca-certificates for downloading GDS JAR
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Download GDS 2.27.0 JAR from GitHub releases
# Use -k to skip SSL verification for corporate proxies
RUN curl -fLk -o graph-data-science-2.27.0.jar \
https://github.com/neo4j/graph-data-science/releases/download/2.27.0/neo4j-graph-data-science-2.27.0.jar && \
[ -f graph-data-science-2.27.0.jar ] || { echo "GDS JAR download failed"; exit 1; }
# Copy GDS JAR to plugins directory
RUN mv graph-data-science-2.27.0.jar /var/lib/neo4j/plugins/ && \
chmod 644 /var/lib/neo4j/plugins/graph-data-science-2.27.0.jar && \
ls -lh /var/lib/neo4j/plugins/graph-data-science-2.27.0.jar
# APOC will be auto-installed via NEO4J_PLUGINS environment variable
# This Dockerfile just handles GDS which can't be auto-installed in community edition
WORKDIR /var/lib/neo4j
# Expose ports
EXPOSE 7474 7687
# Start Neo4j with default entrypoint