-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (28 loc) · 856 Bytes
/
Dockerfile
File metadata and controls
32 lines (28 loc) · 856 Bytes
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
FROM debian:trixie-slim
SHELL ["/bin/bash", "-c"]
ARG ENV_VERSION
ENV ENV_VERSION=${ENV_VERSION}
ENV BASH_ENV=/etc/profile
ENV VIRTUAL_ENV=/opt/apes/venv
ENV PIP_DOWNLOAD_CACHE=${VIRTUAL_ENV}/.pip/cache
ENV PIP_REQUIRE_VIRTUALENV=true
ENV FC=mpif90
RUN apt update && apt upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt install -y \
build-essential \
gcc \
gfortran \
git \
libfftw3-dev \
openmpi-bin openmpi-common libopenmpi-dev \
pkg-config \
python3-dev \
python3-full \
python3-pip \
util-linux && \
useradd apes
COPY requirements.txt /tmp/
RUN python3 -m venv --system-site-packages $VIRTUAL_ENV && \
source $VIRTUAL_ENV/bin/activate && \
$VIRTUAL_ENV/bin/pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
COPY helper/env-freeze $VIRTUAL_ENV/bin/