Skip to content

Commit

Permalink
Merge pull request #78 from memgraph/pack-mgconsole-into-container
Browse files Browse the repository at this point in the history
Pack mgconsole into container
  • Loading branch information
antejavor authored Sep 16, 2024
2 parents 8313898 + 45dc81b commit e564229
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

FROM debian:bullseye-slim AS builder

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
git \
cmake \
make \
gcc \
g++ \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/memgraph/mgconsole.git /mgconsole

WORKDIR /mgconsole

RUN mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install

FROM debian:bullseye-slim

WORKDIR /mgconsole

COPY --from=builder /mgconsole/build/src/mgconsole /usr/local/bin/mgconsole

ENTRYPOINT ["mgconsole"]

0 comments on commit e564229

Please sign in to comment.