Skip to content

Commit

Permalink
Update the image
Browse files Browse the repository at this point in the history
  • Loading branch information
antejavor committed Aug 14, 2024
1 parent 8456ea9 commit 2dbda95
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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"]

0 comments on commit 2dbda95

Please sign in to comment.