mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
parent
02a8aaa6d0
commit
4865a092e4
|
|
@ -21,10 +21,11 @@ COPY --chmod=700 . /opt/maxkb-app
|
|||
WORKDIR /opt/maxkb-app
|
||||
RUN rm -rf /opt/maxkb-app/ui && \
|
||||
python3 -m venv /opt/py3 && \
|
||||
pip install uv --break-system-packages && \
|
||||
pip install poetry==2.0.0 --break-system-packages && \
|
||||
poetry config virtualenvs.create false && \
|
||||
. /opt/py3/bin/activate && \
|
||||
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
|
||||
uv sync && \
|
||||
poetry install && \
|
||||
find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" -o -name "README.md" -o -name "poetry.lock" -o -name "pyproject.toml" \) -exec rm -rf {} + && \
|
||||
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \
|
||||
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
|
||||
|
|
|
|||
Loading…
Reference in New Issue