-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
61 lines (55 loc) · 1.38 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM mwatelescope/mwalib:latest-python3.11-slim-bookworm
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
ARG DEBUG
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
automake \
build-essential \
casacore-data \
casacore-dev \
clang \
cmake \
curl \
git \
jq \
lcov \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-test-dev \
liberfa-dev \
libexpat1-dev \
libfftw3-dev \
libhdf5-dev \
liblua5.3-dev \
liblapack-dev \
libpng-dev \
libssl-dev \
libtool \
pkg-config \
unzip \
zip \
&& rm -rf /var/lib/apt/lists/*
ARG AOFLAGGER_BRANCH=v3.4.0
RUN git clone --depth 1 --branch=${AOFLAGGER_BRANCH} --recurse-submodules https://gitlab.com/aroffringa/aoflagger.git /aoflagger && \
cd /aoflagger && \
mkdir build && \
cd build && \
cmake $CMAKE_ARGS \
-DENABLE_GUI=OFF \
.. && \
make install -j`nproc` && \
ldconfig && \
cd / && \
rm -rf /aoflagger
# set up aoflagger python library
ENV PYTHONPATH="/usr/local/lib/"
ADD . /birli
WORKDIR /birli
ARG TEST_SHIM=""
RUN ${TEST_SHIM}
RUN cargo install --path . --features aoflagger --locked $(test -z "$DEBUG" || echo "--debug") \
&& cargo clean
ENTRYPOINT [ "/opt/cargo/bin/birli" ]