test dockerfile
This commit is contained in:
parent
abdb62fd55
commit
d7411d90c4
7
Dockerfile
Normal file
7
Dockerfile
Normal 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"]
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user