Add intelanalytics/ipex-llm:sources image for OSPDT (#11296)

* Add intelanalytics/ipex-llm:sources image

* apt-get source
This commit is contained in:
Shaojun Liu 2024-06-13 14:29:14 +08:00 committed by GitHub
parent 01fe0fc1a2
commit 84f04087fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,17 @@
FROM ubuntu:22.04
# Add deb-src entries to the sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" >> /etc/apt/sources.list
# Update package lists and install dpkg-dev
RUN apt-get update && apt-get install -y dpkg-dev
# Create a temporary directory, adjust permissions, and download source code for the specified packages
RUN mkdir -p /usr/local/src/git-source && \
chown _apt:root /usr/local/src/git-source && \
cd /usr/local/src/git-source && \
apt-get source \
git \
gnupg \
numactl \
wget

View file

@ -0,0 +1,12 @@
This is used for OSPDT review.
A separate Docker container layer tagged as: <YOUR_DOCKER_IMAGE>:<xPL_VERSION>-sources tag for sources of 3d party packages with MPL 1.x, MPL 2.x, GPL 1.x, GPL 2.x and GPL 3.x variants.
### Build Image
```bash
docker build \
--build-arg http_proxy=.. \
--build-arg https_proxy=.. \
--build-arg no_proxy=.. \
--rm --no-cache -t intelanalytics/ipex-llm:sources .
```