Files @ 0680c58853a4
Branch filter:

Location: website/Dockerfile-debian-bookworm

Bradley M. Kuhn
Display donation bar, noting it's results, for 1 week after end

The fundgoal section is now always included, but an if statement now
wraps the entire (partial) file, which will only generate any content
if it's not more than one week after the fundraiser has ended.

Add an else that indicates these are results if it is past the end of
the fundraiser.
# To build the Docker image with the necessary dependencies:
# docker build --tag sfconservancy.org-bookworm --file Dockerfile-debian-bookworm .
#
# To run the website, first ensure you have a
# "conservancy/djangocommonsettings.py" file, with an appropriate database path. Then run:
#
# run --tty --interactive --rm=true --publish=8000:8000 \
#   --mount type=bind,source=$(pwd),target=/var/www/website \
#   --mount type=bind,source=$(pwd)/conservancy-website.sqlite3,target=/var/lib/www/database/conservancy-website.sqlite3 \
#   sfconservancy.org-bookworm:latest

ARG DEBIAN_FRONTEND=noninteractive

FROM debian:bookworm
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python3 python3-pip python3-wheel sqlite3
RUN apt-get install -y python3-django python3-bs4 python3-html5lib python3-django-countries
COPY ./requirements.txt /var/www/website/requirements.txt
WORKDIR /var/www/website/
RUN python3 -m pip install -r requirements.txt --break-system-packages
RUN python3 -m pip freeze
ENTRYPOINT ["python3", "/var/www/website/manage.py", "runserver", "0.0.0.0:8000"]