forked from opea-project/GenAIComps
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.openEuler
More file actions
30 lines (21 loc) · 836 Bytes
/
Copy pathDockerfile.openEuler
File metadata and controls
30 lines (21 loc) · 836 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
# Copyright (C) 2025 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
FROM openeuler/python:3.11.13-oe2403lts
RUN yum update -y && \
yum install -y \
shadow \
jemalloc-devel && \
yum clean all && \
rm -rf /var/cache/yum
RUN useradd -m -s /bin/bash user && \
mkdir -p /home/user && \
chown -R user /home/user/
COPY comps/llms/src/text-generation/requirements.txt /home/user/comps/llms/src/text-generation/requirements.txt
ARG uvpip='uv pip install --system --no-cache-dir'
RUN pip install --no-cache-dir --upgrade pip setuptools uv && \
$uvpip -r /home/user/comps/llms/src/text-generation/requirements.txt
COPY comps /home/user/comps
ENV PYTHONPATH=$PYTHONPATH:/home/user
USER user
WORKDIR /home/user/comps/llms/src/text-generation
ENTRYPOINT ["bash", "entrypoint.sh"]