forked from metno/snap
-
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
1 parent
5303593
commit be26cce
Showing
2 changed files
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM ubuntu:22.04 AS builder | ||
|
||
ENV SNAP_FIMEX_VERSION=1.9 | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y software-properties-common && \ | ||
add-apt-repository -y ppa:met-norway/fimex && \ | ||
apt-get update -y && \ | ||
apt-get install -y libnetcdff-dev gfortran libfimex-$SNAP_FIMEX_VERSION-dev make && \ | ||
apt-get remove -y software-properties-common && \ | ||
apt-get -y autoremove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /snap | ||
ARG VERSION="latest" | ||
ADD src . | ||
RUN ln --symbolic --force gcc_pkgconfig.mk current.mk | ||
ENV SNAP_USE_OMP=1 | ||
RUN make clean && make | ||
|
||
FROM ubuntu:22.04 | ||
|
||
ENV SNAP_FIMEX_VERSION=1.9 | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y software-properties-common && \ | ||
add-apt-repository -y ppa:met-norway/fimex && \ | ||
apt-get update -y && \ | ||
apt-get install -y libnetcdff7 libfimex-$SNAP_FIMEX_VERSION-0 tini && \ | ||
apt-get remove -y software-properties-common && \ | ||
apt-get -y autoremove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /snap | ||
COPY --from=builder /snap/naccident/bsnap_naccident /snap/bsnap | ||
|
||
ENTRYPOINT ["/usr/bin/env", "TINI_VERBOSITY=0", "/usr/bin/tini", "-g", "--", "/snap/bsnap"] |
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