website/Dockerfile-debian-stretch

15 lines
894 B
Text
Raw Normal View History

# docker build --tag sfconservancy.org-stretch - < 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-stretch:latest
2023-09-07 13:03:10 +00:00
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
2023-09-13 03:33:27 +00:00
RUN python3 -m pip freeze
WORKDIR /var/www/website/www
2023-09-07 13:03:10 +00:00
ENTRYPOINT ["python3", "/var/www/website/www/manage.py", "runserver", "0.0.0.0:8000"]