-
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.
- Loading branch information
1 parent
a70f475
commit 33541de
Showing
15 changed files
with
328 additions
and
543 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,7 +1,6 @@ | ||
# 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,15 +1,18 @@ | ||
FROM ghcr.io/astral-sh/uv:0.6.2-python3.12-bookworm | ||
FROM pennlabs/django-base:3cadd22f7ad51359c5e86b6a3cba2fc155c1c6ab | ||
|
||
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' | ||
|
||
# Implicitly sync dependencies and collect static files | ||
RUN uv run /app/manage.py collectstatic --noinput | ||
# Collect static files | ||
RUN python3 /app/manage.py collectstatic --noinput |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[[source]] | ||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
dj-database-url = "*" | ||
Django = "*" | ||
django-extensions = "*" | ||
django-registration = "*" | ||
psycopg2 = "*" | ||
raven = "*" | ||
uwsgi = "*" | ||
|
||
[dev-packages] | ||
codecov = "*" | ||
unittest-xml-reporting = "*" | ||
tblib = "*" | ||
|
||
[requires] | ||
python_version = "3" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.