Skip to content

Commit

Permalink
manually install UV cross -platform
Browse files Browse the repository at this point in the history
  • Loading branch information
feederbox826 committed Sep 29, 2024
1 parent f49272f commit adfc95e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dockerfile/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ ARG \
UPSTREAM_STASH="stashapp/stash:${STASH_TAG}"
FROM $UPSTREAM_STASH AS stash

FROM alpine:3.20 AS uv
RUN apk add curl && \
curl -LsSf https://astral.sh/uv/install.sh | sh && \
mv /root/.cargo/bin/uv /uv

FROM alpine:3.20 AS final

# labels
Expand Down Expand Up @@ -37,7 +42,7 @@ ENV HOME="/root" \
# Logging
LOGGER_LEVEL="1"
COPY --from=stash --chmod=755 /usr/bin/stash /app/stash
COPY --from=ghcr.io/astral-sh/uv:latest --chmod=755 /uv /bin/uv
COPY --from=uv --chmod=755 /uv /bin/uv
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
Expand Down
7 changes: 6 additions & 1 deletion dockerfile/hwaccel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ ARG \
UPSTREAM_STASH="stashapp/stash:${STASH_TAG}"
FROM $UPSTREAM_STASH AS stash

FROM alpine:3.20 AS uv
RUN apk add curl && \
curl -LsSf https://astral.sh/uv/install.sh | sh && \
mv /root/.cargo/bin/uv /uv

FROM debian:bookworm-slim AS final

# arguments
Expand Down Expand Up @@ -46,7 +51,7 @@ ENV HOME="/root" \
# copy over build files
COPY stash/root/defaults /defaults
COPY --from=stash --chmod=755 /usr/bin/stash /app/stash
COPY --from=ghcr.io/astral-sh/uv:latest --chmod=755 /uv /bin/uv
COPY --from=uv --chmod=755 /uv /bin/uv
RUN \
echo "**** install build dependencies ****" && \
apt-get update && \
Expand Down

0 comments on commit adfc95e

Please sign in to comment.