2020-10-08 16:59:49 +08:00
|
|
|
FROM debian:buster
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
ARG deb_release
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2018-06-22 23:46:02 +08:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2020-10-08 16:59:49 +08:00
|
|
|
openssl libcurl4 libssl1.1 libseccomp2 python3 libpython3.7 python3-pip \
|
2020-04-04 02:03:02 +08:00
|
|
|
--no-install-recommends \
|
2018-06-22 23:46:02 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2020-10-15 15:14:50 +08:00
|
|
|
RUN pip3 install networkx==2.4 numpy==1.19.2 scipy==1.5.2
|
2020-04-04 02:03:02 +08:00
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
COPY ${deb_release} /
|
2017-10-06 19:10:31 +08:00
|
|
|
|
2017-11-22 23:40:39 +08:00
|
|
|
# Install memgraph package
|
|
|
|
RUN dpkg -i ${deb_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 [""]
|