-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_proxy
executable file
·43 lines (33 loc) · 1.16 KB
/
Dockerfile_proxy
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
FROM ubuntu:20.04
ENV http_proxy 'http://wwwcache.fmi.fi:8080'
ENV https_proxy 'http://wwwcache.fmi.fi:8080'
# Install GL libraries
RUN apt-get -qq update && apt-get -qq -y install libgl1-mesa-glx
# Install conda
RUN apt-get -qq update && apt-get -qq -y install curl bzip2 \
&& curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
&& bash /tmp/miniconda.sh -bfp /usr/local \
&& rm -rf /tmp/miniconda.sh
RUN conda install -y python=3 \
&& conda update -y conda \
&& apt-get -qq -y remove curl bzip2 \
&& apt-get -qq -y autoremove \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log \
&& conda clean --all --yes
# Workdir and input/output/log dir
WORKDIR .
RUN mkdir input output log
# Create conda environment
COPY environment.yml .
RUN conda env create -f environment.yml -n fmippn
# Copy fmippn directory
COPY fmippn /fmippn
# Disable dask
RUN export OMP_NUM_THREADS=1
RUN export HDF5_USE_FILE_LOCKING=FALSE
# Run
WORKDIR /fmippn
ENV domain ravake
ENV timestamp 202007071130
ENTRYPOINT conda run -n fmippn python run_ppn.py --config=$domain --timestamp=$timestamp