diff --git a/DockerFile b/DockerFile index ac558cda..4b26e1b7 100644 --- a/DockerFile +++ b/DockerFile @@ -1,10 +1,8 @@ -# Use an official Ubuntu as a parent image -FROM ubuntu:20.04 -# Set environment variables to non-interactive +FROM debian:bullseye-slim + ENV DEBIAN_FRONTEND=noninteractive -# Install dependencies RUN apt-get update && apt-get install -y \ git \ cmake \ @@ -14,17 +12,13 @@ RUN apt-get update && apt-get install -y \ libssl-dev \ && rm -rf /var/lib/apt/lists/* -# Clone the mgconsole repository RUN git clone https://github.com/memgraph/mgconsole.git /mgconsole -# Set the working directory WORKDIR /mgconsole -# Create build directory and build mgconsole RUN mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE=Release .. && \ make && \ make install -# Set the entry point to mgconsole ENTRYPOINT ["mgconsole"] \ No newline at end of file