maybe smaller dockerimage

This commit is contained in:
Martin Quarda 2024-10-31 11:34:17 +01:00
parent ba4ed4de37
commit 1f8d092dd0
2 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,9 @@
FROM greyltc/archlinux-aur:yay FROM greyltc/archlinux-aur:yay
WORKDIR /alkator WORKDIR /alkator
COPY . . COPY alkator alkator
RUN pacman -Syu python python-weasyprint python-dateutil python-django npm python-requests python-pip --noconfirm COPY alkatorapi alkatorapi
RUN pacman -Syu python python-weasyprint python-dateutil python-django python-requests python-pip --noconfirm
RUN sudo -u ab -D~ bash -c 'yay -Syu --removemake --needed --noprogressbar --noconfirm python-daphne' 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 RUN pip install django_prometheus --break-system-packages
EXPOSE 8005 EXPOSE 8005
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-b", "0.0.0.0", "-p", "8005"] CMD ["/usr/bin/daphne", "alkator.asgi:application", "-b", "0.0.0.0", "-p", "8005"]

View File

@ -0,0 +1,2 @@
#!/bin/bash
docker push gitea.angoosh.com/meiri/alkator/api:latest