Skip to content

Commit 89aa33a

Browse files
committed
Install uv in a simpler way in docker
1 parent 8c28338 commit 89aa33a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

backend/Dockerfile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,8 @@ ARG DEPENDENCY_MANAGER="pipenv"
33

44
LABEL maintainer="Penn Labs"
55

6-
# Install build dependencies
7-
RUN apt-get update && apt-get install --no-install-recommends -y gcc libpq-dev libc-dev curl \
8-
&& rm -rf /var/lib/apt/lists/*
9-
106
# Install uv
11-
# Download the latest installer
12-
ADD https://astral.sh/uv/0.6.0/install.sh /uv-installer.sh
13-
14-
RUN echo "5464b06094b6363861b99cd60a010892e52fc2a7503b7594419828e74afecfe6 /uv-installer.sh" | sha256sum -c
15-
16-
# Run the installer then remove it
17-
RUN sh /uv-installer.sh && rm /uv-installer.sh
18-
19-
# Ensure the installed binary is on the `PATH`
20-
ENV PATH="/root/.local/bin/:$PATH"
7+
COPY --from=ghcr.io/astral-sh/uv@sha256:2381d6aa60c326b71fd40023f921a0a3b8f91b14d5db6b90402e65a635053709 /uv /uvx /bin/
218

229
# Copy project dependencies
2310
COPY Pipfile* /app/

0 commit comments

Comments
 (0)