Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MasWag committed May 29, 2024
1 parent 18da231 commit a13f548
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
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"]

0 comments on commit a13f548

Please sign in to comment.