test dockerfile

This commit is contained in:
Martin Quarda 2024-10-24 10:57:10 +02:00
parent abdb62fd55
commit d7411d90c4
2 changed files with 9 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM greyltc/archlinux-aur
WORKDIR /alkator
COPY . .
EXPOSE 8002
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'
CMD ["/usr/bin/daphne", "alkator.asgi:application", "-p", "8002"]

View File

@ -32,6 +32,7 @@ CSRF_TRUSTED_ORIGINS = ['https://alkator.cz', 'https://beta.alkator.cz']
# Application definition
INSTALLED_APPS = [
'daphne',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@ -70,6 +71,7 @@ TEMPLATES = [
]
WSGI_APPLICATION = 'alkator.wsgi.application'
ASGI_APPLICATION = 'alkator.asgi.application'
SESSION_COOKIE_SECURE = True