-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathDockerfile.openEuler
More file actions
38 lines (25 loc) · 887 Bytes
/
Dockerfile.openEuler
File metadata and controls
38 lines (25 loc) · 887 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
# Copyright (C) 2025 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
# Base image for GenAIComps based OPEA Python applications
# Build: docker build -t opea/comps-base:{version}-openeuler -f Dockerfile.openEuler .
ARG IMAGE_NAME=openeuler/python
ARG IMAGE_TAG=3.11.13-oe2403lts
FROM ${IMAGE_NAME}:${IMAGE_TAG} AS base
ENV HOME=/home/user
RUN yum update -y && \
yum upgrade -y && \
yum install -y shadow && \
yum clean all && \
rm -rf /var/cache/yum
RUN useradd -m -s /bin/bash user && \
mkdir -p $HOME && \
chown -R user $HOME
WORKDIR $HOME
COPY *.toml *.py *.txt *.md LICENSE ./
ARG uvpip='uv pip install --system --no-cache-dir'
RUN pip install --no-cache-dir --upgrade pip setuptools uv && \
$uvpip -r requirements.txt
COPY comps/ comps/
ENV PYTHONPATH=$PYTHONPATH:$HOME
USER user
ENTRYPOINT ["sh", "-c", "set && ls -la"]