mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2024-11-14 04:07:57 +01:00
fafae795e4
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.
20 lines
452 B
Docker
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" ]
|