mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
add fix for pip issues
This commit is contained in:
parent
3c47d59fb9
commit
8858052b1f
2 changed files with 11 additions and 2 deletions
|
|
@ -13,7 +13,11 @@ RUN yum install -y gcc python3-devel gcc-c++
|
|||
|
||||
# Install python packages
|
||||
COPY modules/ml-pipeline/src/pipeline/requirements/predictions/requirements.txt ./requirements.txt
|
||||
RUN pip install --no-cache-dir -r ./requirements.txt
|
||||
|
||||
RUN pip install uv
|
||||
|
||||
RUN uv pip install -r requirements.txt --system
|
||||
# RUN pip install --no-cache-dir -r ./requirements.txt
|
||||
|
||||
# Copy the project code
|
||||
COPY modules/ml-pipeline/src/pipeline ./pipeline
|
||||
|
|
|
|||
|
|
@ -6,7 +6,12 @@ RUN apt-get update && apt-get install -y libgomp1 gcc python3-dev
|
|||
COPY pipeline/requirements/predictions/requirements.txt requirements.txt
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN pip install uv
|
||||
|
||||
RUN uv pip install -r requirements.txt --system
|
||||
|
||||
# RUN pip install -r requirements.txt
|
||||
|
||||
# Assuming in the CI/CD step, there will be a dvc pull step to get data and model, so will just need to run a single script
|
||||
COPY pipeline/ /home/pipeline/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue