-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (37 loc) · 1.54 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG BASE_OS="ubuntu:22.04"
FROM ${BASE_OS}
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
RUN apt-get update && \
apt-get install -y curl ca-certificates gnupg wget graphviz unzip software-properties-common opam
# Install Node.js
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_21.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt update \
&& apt install nodejs -y
# Install Neo4j
ENV NEO4J_HOME="/var/lib/neo4j"
RUN wget -O - https://debian.neo4j.com/neotechnology.gpg.key | apt-key add - \
&& echo 'deb https://debian.neo4j.com stable 5' | tee -a /etc/apt/sources.list.d/neo4j.list \
&& apt-get update \
&& apt-get install -y neo4j=1:5.9.0 \
&& echo dbms.security.auth_enabled=false >> /etc/neo4j/neo4j.conf
# Install Python 3.11
RUN add-apt-repository ppa:deadsnakes/ppa \
&& apt install python3.11 python3-pip python3.11-dev -y \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 \
&& pip install --upgrade pip setuptools
# Install Opam
RUN opam init --disable-sandboxing --auto-setup -y \
&& opam switch create -y 4.14 4.14.1 \
&& eval $(opam env) \
&& echo "eval \$(opam env)" >> ~/.bashrc
# Clean up
RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Build graphjs
COPY ./ /graphjs
WORKDIR /graphjs
RUN ./setup.sh