1
1
# Build based on https://github.com/aws/deep-learning-containers/blob/master/huggingface/pytorch/inference/docker/2.1/py3/sdk2.18.0/Dockerfile.neuronx
2
- FROM ubuntu:20 .04 as base
2
+ FROM ubuntu:22 .04 as base
3
3
4
4
LABEL maintainer="Hugging Face"
5
5
6
6
ARG PYTHON=python3.10
7
7
ARG PYTHON_VERSION=3.10.12
8
8
ARG MAMBA_VERSION=23.1.0-4
9
9
10
- # Neuron SDK components version numbers
11
- # ARG NEURONX_FRAMEWORK_VERSION=2.1.2.2.1.0
12
- # ARG NEURONX_DISTRIBUTED_VERSION=0.7.0
13
- # ARG NEURONX_CC_VERSION=2.13.66.0
14
- ARG NEURONX_TRANSFORMERS_VERSION=0.12.313
15
10
ARG NEURONX_COLLECTIVES_LIB_VERSION=2.22.33.0-d2128d1aa
16
11
ARG NEURONX_RUNTIME_LIB_VERSION=2.22.19.0-5856c0b42
17
12
ARG NEURONX_TOOLS_VERSION=2.19.0.0
18
13
19
-
20
14
# HF ARGS
21
15
ARG OPTIMUM_NEURON_VERSION=0.0.28
22
16
@@ -28,27 +22,18 @@ ENV PATH /opt/conda/bin:/opt/aws/neuron/bin:$PATH
28
22
RUN apt-get update \
29
23
&& apt-get upgrade -y \
30
24
&& apt-get install -y --no-install-recommends software-properties-common \
31
- && add-apt-repository ppa:openjdk-r/ppa \
32
25
&& apt-get update \
33
26
&& apt-get install -y --no-install-recommends \
34
27
build-essential \
35
28
apt-transport-https \
36
29
ca-certificates \
37
30
cmake \
38
31
curl \
39
- emacs \
40
32
git \
41
33
jq \
42
- libgl1-mesa-glx \
43
- libsm6 \
44
- libxext6 \
45
- libxrender-dev \
46
- openjdk-11-jdk \
47
- vim \
48
34
wget \
49
35
unzip \
50
36
zlib1g-dev \
51
- libcap-dev \
52
37
gpg-agent \
53
38
&& rm -rf /var/lib/apt/lists/* \
54
39
&& rm -rf /tmp/tmp* \
@@ -67,11 +52,6 @@ RUN apt-get update \
67
52
&& rm -rf /tmp/tmp* \
68
53
&& apt-get clean
69
54
70
- # https://github.com/docker-library/openjdk/issues/261 https://github.com/docker-library/openjdk/pull/263/files
71
- RUN keytool -importkeystore -srckeystore /etc/ssl/certs/java/cacerts -destkeystore /etc/ssl/certs/java/cacerts.jks -deststoretype JKS -srcstorepass changeit -deststorepass changeit -noprompt; \
72
- mv /etc/ssl/certs/java/cacerts.jks /etc/ssl/certs/java/cacerts; \
73
- /var/lib/dpkg/info/ca-certificates-java.postinst configure;
74
-
75
55
RUN curl -L -o ~/mambaforge.sh https://github.com/conda-forge/miniforge/releases/download/${MAMBA_VERSION}/Mambaforge-${MAMBA_VERSION}-Linux-x86_64.sh \
76
56
&& chmod +x ~/mambaforge.sh \
77
57
&& ~/mambaforge.sh -b -p /opt/conda \
@@ -94,7 +74,6 @@ RUN curl -L -o ~/mambaforge.sh https://github.com/conda-forge/miniforge/releases
94
74
&& /opt/conda/bin/conda clean -ya
95
75
96
76
RUN conda install -c conda-forge \
97
- scikit-learn \
98
77
h5py \
99
78
requests \
100
79
&& conda clean -ya \
0 commit comments