forked from DHI-GRAS/fmaskilicious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 865 Bytes
/
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
FROM ubuntu:18.04
LABEL maintainer.name="Jonas Sølvsteen" maintainer.email="[email protected]"
USER root
RUN apt-get update && \
apt-get install -y \
'curl' \
'unzip' \
'libxmu6' \
'openjdk-11-jdk' \
'xserver-xorg'
COPY Fmask_4_6_Linux_mcr.install .
RUN chmod +x Fmask_4_6_Linux_mcr.install && \
./Fmask_4_6_Linux_mcr.install -mode silent -agreeToLicense yes && \
rm Fmask_4_6_Linux_mcr.install
COPY run_fmask.sh /usr/local/bin/run_fmask.sh
RUN chmod +x /usr/local/bin/run_fmask.sh
COPY run_Fmask_4_6.sh /usr/GERS/Fmask_4_6/application/run_Fmask_4_6.sh
RUN chmod +x /usr/GERS/Fmask_4_6/application/run_Fmask_4_6.sh
VOLUME ["/mnt/input-dir"]
VOLUME ["/mnt/output-dir"]
WORKDIR /work
RUN chmod 777 /work /mnt/output-dir
ENV MCR_CACHE_ROOT="/tmp/mcr-cache"
ENTRYPOINT ["/usr/local/bin/run_fmask.sh"]
CMD ["--help"]