-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: lahcen BOULBALAH <lahcen.boulbalah@alten.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
build/ | ||
|
||
# IDE | ||
.vscode/ | ||
.cache/ | ||
.vs/ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |