django prometheus in Dockerfile

This commit is contained in:
Martin Quarda 2024-10-30 16:04:21 +01:00
parent c5fa34446e
commit 754d2d7c2b

View File

@ -4,5 +4,6 @@ COPY . .
RUN pacman -Syu python python-weasyprint python-dateutil python-django npm python-requests --noconfirm
RUN sudo -u ab -D~ bash -c 'yay -Syu --removemake --needed --noprogressbar --noconfirm python-daphne'
RUN cd frontend && npm install && npm run build && rm -rf node_modules && cd ..
RUN pip install django_prometheus --break-system-packages
EXPOSE 8005
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-b", "0.0.0.0", "-p", "8005"]