-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 changed file
with
5 additions
and
5 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,22 @@ | ||
FROM alpine:3.15.2 | ||
FROM alpine:3.20.0 | ||
LABEL maintainer "Masaki Waga <[email protected]>" | ||
|
||
# Install depending packages | ||
RUN apk add --no-cache g++=10.3.1_git20211027-r0 make=4.3-r0 cmake=3.21.3-r0 bison=3.7.6-r0 flex-dev=2.6.4-r2 eigen-dev=3.4.0-r0 boost-dev=1.77.0-r1 git=2.34.2-r0 | ||
RUN apk add --no-cache g++=13.2.1_git20240309-r0 make=4.4.1-r2 cmake=3.29.3-r0 bison=3.8.2-r1 flex-dev=2.6.4-r6 eigen-dev=3.4.0-r10 boost-dev=1.84.0-r1 git=2.45.1-r0 | ||
|
||
# Download cmake configuration for eigen | ||
RUN wget -q https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.bz2 && tar xvf eigen-3.3.7.tar.bz2 && mv eigen-3.3.7 eigen | ||
RUN wget -q https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2 && tar xvf eigen-3.4.0.tar.bz2 && mv eigen-3.4.0 eigen | ||
|
||
# Download the MONAA source | ||
RUN git clone https://github.com/MasWag/monaa.git | ||
|
||
# Build MONAA | ||
RUN mkdir -p monaa/build | ||
WORKDIR ${HOME}/monaa/build | ||
WORKDIR /monaa/build | ||
RUN cmake -DCMAKE_MODULE_PATH=/eigen/cmake -DCMAKE_BUILD_TYPE=Release .. && make monaa && make install | ||
|
||
# Uninstall build only dependencies | ||
WORKDIR / | ||
RUN apk del --no-cache make cmake bison flex eigen-dev doxygen git && rm -rf /monaa /eigen /eigen-3.3.7.tar.bz2 | ||
RUN apk del --no-cache make cmake bison flex eigen-dev doxygen git && rm -rf /monaa /eigen /eigen-3.4.0.tar.bz2 | ||
|
||
ENTRYPOINT ["/usr/local/bin/monaa"] |