Skip to content

Commit a5c38af

Browse files
build: add --prefer-binary.
1 parent bbd901e commit a5c38af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ RUN apt-get update && \
1515
WORKDIR /opt/maxkb-app
1616
RUN rm -rf /opt/maxkb-app/ui && \
1717
pip install uv --break-system-packages && \
18-
python -m uv pip install -r pyproject.toml && \
18+
python -m uv pip -- install --prefer-binary -r pyproject.toml && \
1919
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 {} + && \
2020
python /opt/maxkb-app/apps/manage.py compilemessages && \
2121
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
22-
python -m uv pip install --target=$PIP_TARGET requests pymysql psycopg2-binary && \
22+
python -m uv pip -- install --prefer-binary --target=$PIP_TARGET requests pymysql psycopg2-binary && \
2323
rm -rf /opt/maxkb-app/installer
2424
COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui
2525

0 commit comments

Comments
 (0)