This commit is contained in:
Martin Quarda 2024-10-24 14:06:30 +02:00
parent 4abf616637
commit c6aaccda67
2 changed files with 6 additions and 7 deletions

View File

@ -1,9 +1,8 @@
FROM greyltc/archlinux-aur:yay
WORKDIR /alkator
COPY . .
run pacman -Syu python python-weasyprint python-dateutil python-django npm --noconfirm
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 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"]
EXPOSE 8005
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-p", "8005"]

View File

@ -50,14 +50,14 @@ http {
location /api{
proxy_read_timeout 300;
proxy_pass http://localhost:8002;
proxy_pass http://localhost:8005;
}
location /api/upload_files{
client_max_body_size 100M;
proxy_pass http://localhost:8002;
proxy_pass http://localhost:8005;
}
location /admin {
proxy_pass http://localhost:8002;
proxy_pass http://localhost:8005;
}
location /static {
root /alkator;