mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
parent
a5c38af016
commit
1e05eb18e1
|
|
@ -15,11 +15,11 @@ RUN apt-get update && \
|
||||||
WORKDIR /opt/maxkb-app
|
WORKDIR /opt/maxkb-app
|
||||||
RUN rm -rf /opt/maxkb-app/ui && \
|
RUN rm -rf /opt/maxkb-app/ui && \
|
||||||
pip install uv --break-system-packages && \
|
pip install uv --break-system-packages && \
|
||||||
python -m uv pip -- install --prefer-binary -r pyproject.toml && \
|
python -m uv pip install -r pyproject.toml && \
|
||||||
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 {} + && \
|
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 {} + && \
|
||||||
python /opt/maxkb-app/apps/manage.py compilemessages && \
|
python /opt/maxkb-app/apps/manage.py compilemessages && \
|
||||||
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
|
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
|
||||||
python -m uv pip -- install --prefer-binary --target=$PIP_TARGET requests pymysql psycopg2-binary && \
|
python -m uv pip install --target=$PIP_TARGET requests pymysql psycopg2-binary && \
|
||||||
rm -rf /opt/maxkb-app/installer
|
rm -rf /opt/maxkb-app/installer
|
||||||
COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui
|
COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue