memgraph/release/community.dockerfile
Teon Banek 4c25123d83 Make docker installation equivalent to regular install
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
2017-10-06 13:23:34 +02:00

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 [""]