Skip to content

Commit

Permalink
dockerized build (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: lahcen BOULBALAH <lahcen.boulbalah@alten.com>
  • Loading branch information
misarb and lahcen BOULBALAH authored Aug 15, 2023
1 parent 8dbe05f commit 67791cd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .Dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build/

# IDE
.vscode/
.cache/
.vs/
.idea
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:22.04

# Set environment variables to non-interactive (this prevents some prompts)
ENV DEBIAN_FRONTEND=noninteractive

# Install Clang, CMake, git, and other required tools
RUN apt-get update && apt-get install -y \
clang \
cmake \
make \
git \
libstdc++-10-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Set the working directory
WORKDIR /usr/src/graaf

# Copy the entire project to the working directory
COPY . .

# Build the project using CMake and Clang
RUN mkdir build && cd build && \
cmake .. && \
cmake --build .

CMD ["/bin/bash"]

0 comments on commit 67791cd

Please sign in to comment.