alkator/Dockerfile
Martin Quarda e411e71b89 build page
2024-10-24 11:18:03 +02:00

10 lines
448 B
Docker

FROM greyltc/archlinux-aur:yay
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 python manage.py collectstatic
EXPOSE 8002
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-p", "8002"]