fixes
This commit is contained in:
parent
4abf616637
commit
c6aaccda67
@ -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"]
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user