memgraph/tools/mg_import_csv.dockerfile

23 lines
555 B
Plaintext
Raw Normal View History

FROM debian:stretch
COPY mg_import_csv /usr/local/bin/mg_import_csv
# Setup memgraph user and group.
RUN groupadd -r memgraph
RUN useradd -lrm -g memgraph memgraph
# Setup intput/output directory.
# /data is used because that's the shortest way to reference the directory.
RUN mkdir -p /data
RUN chown -R memgraph:memgraph /data
# Change user and set working directory.
USER memgraph:memgraph
VOLUME /data
WORKDIR /data
ENTRYPOINT ["mg_import_csv"]
# Print help and usage by default, since at least one --nodes argument is
# required.
CMD ["--help"]