1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-21 13:37:32 +00:00

Modify Dockerfile

This commit is contained in:
Damillora 2021-06-08 21:23:19 +07:00
parent 661d57ab56
commit b48045956c
3 changed files with 17 additions and 2 deletions

1
.gitignore vendored
View File

@ -128,5 +128,4 @@ dmypy.json
# Pyre type checker
.pyre/
altessimo/production.py
/static/

View File

@ -6,7 +6,7 @@ RUN apk update \
&& apk add --no-cache mariadb-dev \
&& pip install --no-cache-dir -r /app/requirements.txt \
&& apk add --no-cache mariadb-connector-c \
&& apk del .build-deps
&& apk del build-deps
ADD . /app
WORKDIR /app

16
altessimo/production.py Normal file
View File

@ -0,0 +1,16 @@
from altessimo.settings import *
import os
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.getenv('ALTESSIMO_DB_NAME'),
'USER': os.getenv('ALTESSIMO_DB_USER'),
'PASSWORD': os.getenv('ALTESSIMO_DB_PASS'),
'HOST': os.getenv('ALTESSIMO_DB_HOST'),
}
}
ALLOWED_HOSTS = [ os.getenv('ALTESSIMO_WEB_URL') ]