-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
47 lines (39 loc) · 1.18 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
FROM ubuntu:22.04 AS intermediate
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /elmfire/elmfire /scratch/elmfire && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
bc \
build-essential \
csvkit \
gdal-bin \
gfortran \
jq \
libopenmpi-dev \
locales \
nano \
openmpi-bin \
pigz \
python3-minimal \
python3-pip \
sudo \
wget && \
pip3 install --no-cache-dir google-api-python-client python-dateutil && \
python3 -m pip install grpcio grpcio-tools && \
locale-gen en_US.UTF-8 && export LANG=en_US.UTF-8
FROM intermediate
COPY . /elmfire/elmfire
WORKDIR /elmfire/elmfire/build/linux
RUN ./make_gnu.sh
RUN apt-get purge -y build-essential && \
apt-get autoremove -y && \
apt-get clean && \
rm -f -r /var/lib/apt/lists/*
WORKDIR /elmfire
ENV ELMFIRE_VER=2024.0916
ENV ELMFIRE_BASE_DIR=/elmfire/elmfire
ENV ELMFIRE_SCRATCH_BASE=/scratch/elmfire
ENV ELMFIRE_INSTALL_DIR=$ELMFIRE_BASE_DIR/build/linux/bin
ENV CLOUDFIRE_SERVER=172.92.17.198
ENV PATH=$PATH:$ELMFIRE_INSTALL_DIR:$ELMFIRE_BASE_DIR/cloudfire