fix: replace pip with uv for package installation in Dockerfile
This commit is contained in:
parent
ded828104e
commit
0732936f8b
@ -28,7 +28,7 @@ RUN rm -rf /opt/maxkb-app/ui && \
|
|||||||
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 {} + && \
|
||||||
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \
|
export MAXKB_CONFIG_TYPE=ENV && python3 /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 && \
|
||||||
pip install requests pymysql psycopg2-binary && \
|
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
Block a user