Skip to content

Commit

Permalink
Troubleshooting missing wheel file (#39)
Browse files Browse the repository at this point in the history
* Troubleshooting missing wheel file

* Explicitly build wheel

like in other experimental branch whoops
  • Loading branch information
meatballhat authored Dec 17, 2024
1 parent 2dd2921 commit c8d80f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ADD . .
ENV UV_LINK_MODE=copy
RUN if $(git rev-parse --is-shallow-repository); then git fetch --unshallow; fi \
&& git describe --always --dirty --tags \
&& uv build --sdist
&& uv build --sdist --wheel

FROM ubuntu:jammy

Expand Down Expand Up @@ -38,6 +38,7 @@ RUN --mount=type=bind,from=build,target=/tmp/build-layer,ro \
&& mkdir -p /opt/r8/monobase /tmp/r8 \
&& tar --strip-components=1 -C /tmp/r8 -xf $(find /tmp/build-layer/src/dist -name '*.tar.gz' | head -1) \
&& cp -v /tmp/r8/src/monobase/*.sh /tmp/r8/src/monobase/pget /opt/r8/monobase/ \
&& find /tmp/build-layer/src/dist/ -type f \
&& cp -v $(find /tmp/build-layer/src/dist/ -name '*.whl' | head -1) /opt/r8/ \
&& rm -rf /tmp/r8

Expand Down
4 changes: 2 additions & 2 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
set -euo pipefail

cd "$(git rev-parse --show-toplevel)"
rm -f ./dist/monobase*.*
uv build
rm -vf ./dist/monobase*.*
uv build --sdist --wheel
exec docker build --tag monobase:latest --platform=linux/amd64 .

0 comments on commit c8d80f4

Please sign in to comment.