Skip to content

Commit 714b0d8

Browse files
authored
modify user and update dpcpp version (#3044)
1 parent f823e41 commit 714b0d8

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

docker/Dockerfile.xpu

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,10 @@ ARG UBUNTU_VERSION
1616

1717
FROM ubuntu:${UBUNTU_VERSION}
1818

19-
RUN useradd -s /bin/bash user
20-
2119
ENV LANG=C.UTF-8
2220

2321
ARG DEBIAN_FRONTEND=noninteractive
2422

25-
HEALTHCHECK NONE
26-
RUN useradd -d /home/ipex -m -s /bin/bash ipex
27-
2823
RUN apt-get update && \
2924
apt-get install -y --no-install-recommends --fix-missing \
3025
apt-utils \
@@ -116,17 +111,17 @@ RUN python -m pip install numpy
116111
RUN python -m pip install torch==${TORCH_VERSION} -f ${TORCH_WHL_URL} && \
117112
python -m pip install intel_extension_for_pytorch==${IPEX_VERSION} -f ${IPEX_WHL_URL} && \
118113
python -m pip install torchvision==${TORCHVISION_VERSION} -f ${TORCHVISION_WHL_URL}
114+
119115
RUN if [ ${ONECCL_BIND_PT_VERSION} != "N/A" ] && [ ${ONECCL_BIND_PT_WHL_URL} != "N/A" ]; then \
120116
python -m pip install oneccl_bind_pt==${ONECCL_BIND_PT_VERSION} -f ${ONECCL_BIND_PT_WHL_URL}; \
121117
fi
122118

123-
124119
ENV LD_LIBRARY_PATH=/opt/intel/oneapi/lib:/opt/intel/oneapi/lib/intel64:$LD_LIBRARY_PATH
125120

126121
RUN apt update && \
127122
apt install -y sudo
128-
RUN adduser --disabled-password --gecos "" nonroot
129-
RUN echo 'nonroot ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
123+
RUN adduser --disabled-password --gecos "" user
124+
RUN echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
130125

131126
# Set the non-root user as the default user
132127
USER user

docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [[ ${IMAGE_NAME} != "" ]]; then
3535
--build-arg LEVEL_ZERO_GPU_VER=1.3.26241.33-647~22.04 \
3636
--build-arg LEVEL_ZERO_VER=1.11.0-647~22.04 \
3737
--build-arg LEVEL_ZERO_DEV_VER=1.11.0-647~22.04 \
38-
--build-arg DPCPP_VER=2023.2.0-49495 \
38+
--build-arg DPCPP_VER=2023.2.1-16 \
3939
--build-arg MKL_VER=2023.2.0-49495 \
4040
--build-arg TORCH_VERSION=2.0.1a0+cxx11.abi \
4141
--build-arg IPEX_VERSION=2.0.110+xpu \

0 commit comments

Comments
 (0)