-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
27 lines (21 loc) · 838 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
FROM nvcr.io/nvidia/pytorch:24.07-py3
LABEL maintainer="Arnor Ingi Sigurdsson" \
version="0.3" \
description="This Docker image contains EIR framework and its dependencies." \
license="APGL"
ENV DEBIAN_FRONTEND=noninteractive
RUN if ! command -v python3.12 &> /dev/null; then \
apt-get update && apt-get install -y \
software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y python3.12 python3.12-dev python3.12-distutils python3.12-venv \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; \
fi
ENV VIRTUAL_ENV=/opt/venv
RUN python3.12 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3.12 -m pip install --upgrade pip && \
python3.12 -m pip install eir-dl
CMD ["/bin/bash"]