Add Debian Buster dockerfile

Runs fine on Buster!
This commit is contained in:
Ben Sturmfels 2023-09-07 23:27:33 +10:00
parent 9e39d7eadc
commit aa6d3626be
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

10
Dockerfile-debian-buster Normal file
View file

@ -0,0 +1,10 @@
# docker build --tag sfconservancy.org-buster - < Dockerfile-debian-buster
# 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-buster:latest
ARG DEBIAN_FRONTEND=noninteractive
FROM debian:buster
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"]