-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Kim Kulling <kim.kulling@draeger.com>
- Loading branch information
1 parent
2f40a77
commit d386309
Showing
2 changed files
with
8 additions
and
13 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 |
---|---|---|
@@ -1,22 +1,17 @@ | ||
FROM ubuntu:22.04 | ||
FROM gcc:latest | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y ninja-build \ | ||
git cmake build-essential software-properties-common | ||
RUN apt-get update && apt-get install --no-install-recommends -y ninja-build cmake | ||
|
||
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update | ||
|
||
WORKDIR /opt | ||
WORKDIR /app | ||
RUN apt install zlib1g-dev | ||
|
||
# Build Assimp | ||
RUN git clone https://github.com/assimp/assimp.git /opt/assimp | ||
|
||
WORKDIR /opt/assimp | ||
COPY . . | ||
|
||
RUN git checkout master \ | ||
&& mkdir build && cd build && \ | ||
RUN mkdir build && cd build && \ | ||
cmake -G 'Ninja' \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DASSIMP_BUILD_ASSIMP_TOOLS=ON \ | ||
.. && \ | ||
ninja -j4 && ninja install | ||
|
||
CMD ["/app/build/bin/unit"] |
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