This commit is contained in:
Martin Quarda 2024-10-24 13:58:35 +02:00
parent 211f6c75ad
commit 4abf616637

View File

@ -3,7 +3,7 @@ WORKDIR /alkator
COPY . .
run pacman -Syu python python-weasyprint python-dateutil python-django npm --noconfirm
RUN sudo -u ab -D~ bash -c 'yay -Syu --removemake --needed --noprogressbar --noconfirm python-daphne'
RUN cd frontent && npm install && npm run build && rm -rf node_modules && cd ..
RUN cd frontend && npm install && npm run build && rm -rf node_modules && cd ..
RUN python manage.py collectstatic
EXPOSE 8002
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-p", "8002"]