-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (19 loc) · 829 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
# Discover the sha by removing the @sha part and running: timeout 5 docker buildx build --pull --no-cache .
# Alternatively find the sha in Dockerhub UI https://github.com/docker/roadmap/issues/262
FROM fedora:40@sha256:d0207dbb078ee261852590b9a8f1ab1f8320547be79a2f39af9f3d23db33735e
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETPLATFORM
ARG TARGETARCH
RUN echo platform $TARGETPLATFORM
RUN echo arch $TARGETARCH
RUN echo uname -m $(uname -m)
LABEL name="GPAW Openmpi" \
url="https://wiki.fysik.dtu.dk/gpaw/"
ENV GPAW_VERSION 24.6.0
ENV FEDORA_RELEASE 1.fc40
RUN set -x \
&& dnf install -y \
python3-gpaw-openmpi-${GPAW_VERSION}-${FEDORA_RELEASE} \
python3-gpaw-${GPAW_VERSION}-${FEDORA_RELEASE} \
&& dnf clean all
CMD ["/bin/bash"]