-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 1.37 KB
/
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
FROM mambaorg/micromamba:1.1.0
COPY environment.yaml environment.yaml
RUN micromamba install -y -n base -f environment.yaml && \
micromamba clean --all --yes
### Add Neo4j, remove then re-add the needed directories/files to avoid any potential permission issues
RUN /opt/conda/bin/wget -q https://neo4j.com/artifact.php?name=neo4j-community-5.1.0-unix.tar.gz -O neo4j-community-5.1.0-unix.tar.gz \
&& tar -xf neo4j-community-5.1.0-unix.tar.gz \
&& rm neo4j-community-5.1.0-unix.tar.gz \
&& chmod -R 777 neo4j-community-5.1.0 \
&& mkdir -p /opt/conda/bin/neo4j \
&& mv neo4j-community-5.1.0 /opt/conda/bin/neo4j \
&& rm -rf /opt/conda/bin/neo4j/data /opt/conda/bin/neo4j/logs /opt/conda/bin/neo4j/import \
&& mkdir -p /opt/conda/bin/neo4j/data /opt/conda/bin/neo4j/logs /opt/conda/bin/neo4j/import \
&& touch /opt/conda/bin/neo4j/import.report \
&& chmod -R 777 /opt/conda/bin/neo4j/data /opt/conda/bin/neo4j/logs /opt/conda/bin/neo4j/import /opt/conda/bin/neo4j/import.report
USER $MAMBA_USER
ARG MAMBA_DOCKERFILE_ACTIVATE=1 # (otherwise python will not be found)
COPY . .
ENV PATH="/opt/conda/envs/bin:$PATH:/opt/conda/condabin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin/neo4j/neo4j-community-5.1.0/bin"
RUN /opt/conda/bin/python3 -m pip install -e .
WORKDIR /opt/conda/bin/neo4j/neo4j-community-5.1.0