File: Dockerfile.build-static

package info (click to toggle)
ismrmrd 1.14.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,564 kB
  • sloc: cpp: 6,439; ansic: 2,276; xml: 1,025; sh: 187; python: 72; makefile: 42
file content (33 lines) | stat: -rw-r--r-- 891 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:noble AS ismrmrd_static

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        cmake g++ ninja-build \
        libboost-dev libboost-filesystem-dev \
        libboost-program-options-dev libboost-random-dev \
        libboost-system-dev libboost-test-dev \
        libboost-thread-dev libboost-timer-dev \
        libfftw3-dev libhdf5-dev libpugixml-dev \
        locales \
    && apt-get clean

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN mkdir -p /opt/code/ismrmrd
COPY . /opt/code/ismrmrd/

RUN cd /opt/code/ismrmrd && \
    mkdir -p build && \
    cd build && \
    cmake \
        -G Ninja \
        -D CMAKE_BUILD_TYPE=Release \
        -D CMAKE_INSTALL_PREFIX=/opt/package \
        -D BUILD_STATIC=On \
        ../ && \
    ninja && \
    ./tests/test_ismrmrd && \
    ninja install