Himanshu Gangwar commited on
Commit
58ad204
·
1 Parent(s): 5a0da5b

Fix: Use wget with --no-check-certificate for Neo4j download

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -26,13 +26,14 @@ RUN apt-get update && apt-get install -y \
26
  ca-certificates \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
- # Download and install Neo4j
30
  RUN mkdir -p ${NEO4J_HOME} && \
31
  cd ${NEO4J_HOME} && \
32
- curl -fL --retry 5 --retry-delay 3 "https://neo4j.com/artifact.php?name=neo4j-community-${NEO4J_VERSION}-unix.tar.gz" -o neo4j.tar.gz && \
33
  tar -xzf neo4j.tar.gz --strip-components=1 && \
34
  rm neo4j.tar.gz && \
35
- mkdir -p ${NEO4J_HOME}/data ${NEO4J_HOME}/logs ${NEO4J_HOME}/conf
 
36
 
37
  # Configure Neo4j - disable auth and set listen address
38
  RUN echo "server.default_listen_address=0.0.0.0" >> ${NEO4J_HOME}/conf/neo4j.conf && \
 
26
  ca-certificates \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
+ # Download and install Neo4j using direct dist URL
30
  RUN mkdir -p ${NEO4J_HOME} && \
31
  cd ${NEO4J_HOME} && \
32
+ wget --no-check-certificate -q "https://dist.neo4j.org/neo4j-community-${NEO4J_VERSION}-unix.tar.gz" -O neo4j.tar.gz && \
33
  tar -xzf neo4j.tar.gz --strip-components=1 && \
34
  rm neo4j.tar.gz && \
35
+ mkdir -p ${NEO4J_HOME}/data ${NEO4J_HOME}/logs && \
36
+ chmod -R 777 ${NEO4J_HOME}
37
 
38
  # Configure Neo4j - disable auth and set listen address
39
  RUN echo "server.default_listen_address=0.0.0.0" >> ${NEO4J_HOME}/conf/neo4j.conf && \