From a11b114bf4de4ce4c8e335104d1d2cc117ea568f Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 7 Sep 2023 23:03:10 +1000 Subject: [PATCH] Add Debian Stretch dockerfile --- Dockerfile-debian-stretch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile-debian-stretch diff --git a/Dockerfile-debian-stretch b/Dockerfile-debian-stretch new file mode 100644 index 00000000..c9ef5f0d --- /dev/null +++ b/Dockerfile-debian-stretch @@ -0,0 +1,12 @@ +# docker build --tag sfconservancy.org - < Dockerfile-debian-stretch +# docker 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:latest + +ARG DEBIAN_FRONTEND=noninteractive + +FROM debian:stretch +# Default Stretch repositories are no longer available, so replacing with archive. +RUN echo "deb http://archive.debian.org/debian/ stretch main" > /etc/apt/sources.list +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-django-countries +ENTRYPOINT ["python3", "/var/www/website/www/manage.py", "runserver", "0.0.0.0:8000"]