Himanshu Gangwar commited on
Commit ·
58ad204
1
Parent(s): 5a0da5b
Fix: Use wget with --no-check-certificate for Neo4j download
Browse files- 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 |
-
|
| 33 |
tar -xzf neo4j.tar.gz --strip-components=1 && \
|
| 34 |
rm neo4j.tar.gz && \
|
| 35 |
-
mkdir -p ${NEO4J_HOME}/data ${NEO4J_HOME}/logs
|
|
|
|
| 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 && \
|