10 lines
448 B
Docker
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"]
|