-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
1 deletion.
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
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,57 @@ | ||
# Use Ubuntu as base image | ||
FROM ubuntu:latest | ||
|
||
# Set non-interactive mode | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update Ubuntu packages and install necessary dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
cmake \ | ||
libeigen3-dev \ | ||
nlohmann-json3-dev \ | ||
libspdlog-dev \ | ||
build-essential \ | ||
zlib1g-dev\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Libzip | ||
RUN git clone https://github.com/nih-at/libzip.git \ | ||
&& cd libzip \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make \ | ||
&& make install | ||
|
||
# Install Google Test v1.12.1 | ||
RUN git clone -b release-1.12.1 https://github.com/google/googletest.git \ | ||
&& cd googletest \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make \ | ||
&& make install | ||
|
||
# Install mio | ||
RUN git clone -b master https://github.com/vimpunk/mio.git \ | ||
&& cd mio \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make \ | ||
&& make install | ||
|
||
#setting the working directory | ||
WORKDIR /app | ||
|
||
#Copy the project to the container | ||
COPY . . | ||
|
||
#Run and build the project | ||
RUN mkdir build && \ | ||
cd build && \ | ||
cmake .. && \ | ||
make | ||
|
||
|