File tree 1 file changed +22
-3
lines changed
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,30 @@ FROM pennlabs/django-base:b269ea1613686b1ac6370154debbb741b012de1a-3.11
2
2
3
3
LABEL maintainer="Penn Labs"
4
4
5
+ # Install dependencies
6
+ RUN apt-get update \
7
+ && apt-get install --no-install-recommends -y wget \
8
+ && apt-get clean \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install uv
12
+ # Download the latest installer
13
+ ADD https://astral.sh/uv/0.6.0/install.sh /uv-installer.sh
14
+
15
+ RUN echo "5464b06094b6363861b99cd60a010892e52fc2a7503b7594419828e74afecfe6 /uv-installer.sh" | sha256sum -c
16
+
17
+ # Run the installer then remove it
18
+ RUN sh /uv-installer.sh && rm /uv-installer.sh
19
+
20
+ # Ensure the installed binary is on the `PATH`
21
+ ENV PATH="/root/.local/bin/:$PATH"
22
+
5
23
# Copy project dependencies
6
- COPY Pipfile* /app/
24
+ COPY pyproject.toml /app/
25
+ COPY uv.lock /app/
7
26
8
27
# Install project dependencies
9
- RUN pipenv install --system
28
+ RUN cd /app/ && uv sync
10
29
11
30
# Copy project files
12
31
COPY . /app/
@@ -15,4 +34,4 @@ ENV DJANGO_SETTINGS_MODULE Platform.settings.staging
15
34
ENV SECRET_KEY 'temporary key just to build the docker image'
16
35
17
36
# Collect static files
18
- RUN python3 /app/manage.py collectstatic --noinput
37
+ RUN uv run /app/manage.py collectstatic --noinput
You can’t perform that action at this time.
0 commit comments