Skip to content

Commit

Permalink
Fix docker uv installation
Browse files Browse the repository at this point in the history
Fix docker uv installation
  • Loading branch information
daya0576 committed Jan 31, 2025
1 parent 3b570a7 commit 1fa84cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM python:3.12-slim AS python-base
COPY --from=ghcr.io/astral-sh/uv:0.5.26 /uv /uvx /bin/
ENV UV_COMPILE_BYTECODE=1 \
\
PYSETUP_PATH="/opt/pysetup" \
Expand All @@ -13,7 +14,8 @@ RUN apt-get update \
curl \
ca-certificates
WORKDIR $PYSETUP_PATH
COPY --from=ghcr.io/astral-sh/uv:0.5.26 /uv /uvx /bin/
ADD https://astral.sh/uv/0.5.26/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
ENV PATH="/root/.local/bin/:$PATH"

COPY uv.lock pyproject.toml ./
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.nobuildkit.arm32
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ ENV OPENSSL_LIB_DIR=/usr/lib/arm-linux-gnueabihf
ENV OPENSSL_INCLUDE_DIR=/usr/include/arm-linux-gnueabihf/openssl

WORKDIR $PYSETUP_PATH
COPY --from=ghcr.io/astral-sh/uv:0.5.26 /uv /uvx /bin/
ADD https://astral.sh/uv/0.5.26/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
ENV PATH="/root/.local/bin/:$PATH"

COPY uv.lock pyproject.toml ./
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = [
{name = "Henry Zhu", email = "[email protected]"},
]
name = "beaverhabits"
version = "0.3.5"
version = "0.4.4"
requires-python = "<4.0,>=3.12"
dependencies = [
"nicegui<3.0.0,>=2.7.0",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1fa84cd

Please sign in to comment.