-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to uv * Upgrade all dependencies and handle Django breaking changes * Update frontend testing instructions to use bun --------- Co-authored-by: Thomas Ngulube <47449914+Porcupine1@users.noreply.github.com>
- Loading branch information
1 parent
2581ca9
commit 8319b85
Showing
15 changed files
with
543 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Docker | ||
Dockerfile | ||
.dockerignore | ||
.venv | ||
|
||
# git | ||
.circleci | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
FROM pennlabs/django-base:3cadd22f7ad51359c5e86b6a3cba2fc155c1c6ab | ||
FROM ghcr.io/astral-sh/uv:0.6.2-python3.12-bookworm | ||
|
||
LABEL maintainer="Penn Labs" | ||
|
||
# Copy project dependencies | ||
COPY Pipfile* /app/ | ||
|
||
# Install project dependencies | ||
RUN pipenv install --system | ||
|
||
# Copy project files | ||
COPY . /app/ | ||
|
||
WORKDIR /app | ||
RUN uv sync --frozen | ||
|
||
ENV DJANGO_SETTINGS_MODULE penncfa.settings.production | ||
ENV SECRET_KEY 'temporary key just to build the docker image' | ||
|
||
# Collect static files | ||
RUN python3 /app/manage.py collectstatic --noinput | ||
# Implicitly sync dependencies and collect static files | ||
RUN uv run /app/manage.py collectstatic --noinput |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.