fixes
This commit is contained in:
parent
4abf616637
commit
c6aaccda67
@ -1,9 +1,8 @@
|
|||||||
FROM greyltc/archlinux-aur:yay
|
FROM greyltc/archlinux-aur:yay
|
||||||
WORKDIR /alkator
|
WORKDIR /alkator
|
||||||
COPY . .
|
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 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 cd frontend && npm install && npm run build && rm -rf node_modules && cd ..
|
||||||
RUN python manage.py collectstatic
|
EXPOSE 8005
|
||||||
EXPOSE 8002
|
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-p", "8005"]
|
||||||
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-p", "8002"]
|
|
||||||
|
@ -50,14 +50,14 @@ http {
|
|||||||
|
|
||||||
location /api{
|
location /api{
|
||||||
proxy_read_timeout 300;
|
proxy_read_timeout 300;
|
||||||
proxy_pass http://localhost:8002;
|
proxy_pass http://localhost:8005;
|
||||||
}
|
}
|
||||||
location /api/upload_files{
|
location /api/upload_files{
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
proxy_pass http://localhost:8002;
|
proxy_pass http://localhost:8005;
|
||||||
}
|
}
|
||||||
location /admin {
|
location /admin {
|
||||||
proxy_pass http://localhost:8002;
|
proxy_pass http://localhost:8005;
|
||||||
}
|
}
|
||||||
location /static {
|
location /static {
|
||||||
root /alkator;
|
root /alkator;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user