memgraph/release/docker/memgraph_rpm.dockerfile

32 lines
692 B
Plaintext
Raw Normal View History

2022-02-03 20:03:35 +08:00
FROM dokken/centos-stream-9
# NOTE: If you change the base distro update release/package as well.
2022-02-03 20:03:35 +08:00
ARG release
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
2021-12-07 17:10:04 +08:00
RUN pip3 install networkx==2.4 numpy==1.21.4 scipy==1.7.3
2022-02-03 20:03:35 +08:00
COPY ${release} /
# Install memgraph package
2022-02-03 20:03:35 +08:00
RUN rpm -i ${release}
# 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
WORKDIR /usr/lib/memgraph
ENTRYPOINT ["/usr/lib/memgraph/memgraph"]
CMD [""]