docker-pdns/pdns-admin-uwsgi-ngoduykhanh/Dockerfile
Peter Schiffer fafae795e4
Rework admin uwsgi image to run in single app mode
Before, the uwsgi was running in Emperor mode, supporting to run multiple
different apps. However, after the upgrade to Fedora 31, Emperor mode started
to take very long time to start, causing other issues. Since we are running
only one app anyway - this commit simplifies the uwsgi config by switching the
run mode only to single app.
2020-01-03 17:54:33 +01:00

20 lines
452 B
Docker

FROM pschiffe/pdns-admin-base:ngoduykhanh
RUN dnf -y --setopt=install_weak_deps=False install \
mariadb \
uwsgi-plugin-python3 \
&& dnf clean all
EXPOSE 9494
VOLUME [ "/opt/powerdns-admin/upload" ]
COPY docker-entrypoint.sh /
COPY pdns-admin.ini /etc/uwsgi.ini
RUN chown uwsgi: /etc/uwsgi.ini
ENV FLASK_APP=/opt/powerdns-admin/app/__init__.py
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/uwsgi", "--ini", "/etc/uwsgi.ini" ]