2022-02-03 20:03:35 +08:00
|
|
|
FROM dokken/centos-stream-9
|
2021-03-30 18:08:51 +08:00
|
|
|
# NOTE: If you change the base distro update release/package as well.
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2022-02-03 20:03:35 +08:00
|
|
|
ARG release
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2022-02-03 20:03:35 +08:00
|
|
|
RUN yum update && yum install -y \
|
|
|
|
openssl libcurl libseccomp python3 python3-pip \
|
|
|
|
--nobest --allowerasing \
|
|
|
|
&& rm -rf /tmp/* \
|
|
|
|
&& yum clean all
|
2018-06-22 23:46:02 +08:00
|
|
|
|
2021-12-07 17:10:04 +08:00
|
|
|
RUN pip3 install networkx==2.4 numpy==1.21.4 scipy==1.7.3
|
2020-04-04 02:03:02 +08:00
|
|
|
|
2022-02-03 20:03:35 +08:00
|
|
|
COPY ${release} /
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
# Install memgraph package
|
2022-02-03 20:03:35 +08:00
|
|
|
RUN rpm -i ${release}
|
2017-10-06 19:10:31 +08:00
|
|
|
|
|
|
|
# Memgraph listens for Bolt Protocol on this port by default.
|
|
|
|
EXPOSE 7687
|
|
|
|
# Snapshots and logging volumes
|
|
|
|
VOLUME /var/log/memgraph
|
|
|
|
VOLUME /var/lib/memgraph
|
|
|
|
# Configuration volume
|
|
|
|
VOLUME /etc/memgraph
|
|
|
|
|
|
|
|
USER memgraph
|
2020-03-18 22:32:23 +08:00
|
|
|
WORKDIR /usr/lib/memgraph
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2017-12-21 23:03:54 +08:00
|
|
|
ENTRYPOINT ["/usr/lib/memgraph/memgraph"]
|
2017-10-06 19:10:31 +08:00
|
|
|
CMD [""]
|