# 5. service postgresql start; service uwsgi start; service nginx start
# 6. goto https://localhost:8443/admin/
#RUN apt-get update -y && apt-get upgrade -y
RUN apt update && apt-get install -y \
python3-minimal \
python3-pip \
postgresql \
python3-psycopg2 \
cron \
nginx-full \
uwsgi \
uwsgi-plugin-python3 \
sudo \
ca-certificates \
gettext \
bind9utils \
wget \
expect \
wkhtmltopdf \
procps \
net-tools \
ssh \
wkhtmltopdf \
xvfb \
python3-minimal \
python3-dev \
zlib1g-dev \
libcrack2-dev \
libxml2-dev \
libxslt1-dev \
python-is-python3
# Clean up to reduce image size
RUN apt clean && rm -rf /var/lib/apt/lists/*
# celery pinned because big changes on periodic_tasks related API
# celery3.1 wont support > python3.9 (dependency with celery should be removed), celery3.1 won't support django4.0
# orchestra initially was using celery to run async tasks, but then switched to process/threads without MQ... but the dependency with celery was never fully removed :(
# django-iban wont support > 4.0 (django-iban is deprecated, replace by django-localflavor)
# django 3 cannot work https://stackoverflow.com/questions/59261254/no-module-named-django-contrib-staticfiles-templatetags