Modify Dockerfile

main
Damillora 2 years ago
parent 661d57ab56
commit b48045956c

1
.gitignore vendored

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

@ -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

@ -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') ]
Loading…
Cancel
Save