4c25123d83
Summary: This puts the whole installation and packaging under a single point of entry. (Docker, DEB, RPM, etc.) Rename alpha.dockerfile to beta.dockerfile Use Debian Stretch for docker Remove building old hardcoded compiler Rename build_interpreter to build_memgraph Remove unused config-file Reviewers: mferencevic, buda Reviewed By: mferencevic, buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D857
29 lines
627 B
Docker
29 lines
627 B
Docker
FROM debian:stretch
|
|
# FROM debian:stretch # 104MB
|
|
# FROM ubuntu 16.04 # 130MB
|
|
# FROM phusion/baseimage # 220MB
|
|
|
|
ARG build_name
|
|
|
|
COPY ${build_name} /
|
|
|
|
# Setup memgraph user and group
|
|
RUN groupadd -r memgraph
|
|
RUN useradd -lrm -g memgraph memgraph
|
|
RUN chown -R memgraph:memgraph /var/log/memgraph
|
|
RUN chown -R memgraph:memgraph /var/lib/memgraph
|
|
|
|
# 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 /home/memgraph
|
|
|
|
ENTRYPOINT ["memgraph"]
|
|
CMD [""]
|