Create docker image

This commit is contained in:
Sascha Ißbrücker
2019-07-03 17:18:29 +02:00
parent fdcd9cb42c
commit d57ea27ba3
17 changed files with 137 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
"""
Django settings for siteroot project.
Django settings for linkding webapp.
Generated by 'django-admin startproject' using Django 2.2.2.
@@ -120,8 +120,12 @@ USE_TZ = True
STATIC_URL = '/static/'
# Collect static files in static folder
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Location where generated CSS files are saved
SASS_PROCESSOR_ROOT = os.path.join(BASE_DIR, 'bookmarks', 'static', 'build')
SASS_PROCESSOR_ENABLED = True
SASS_PROCESSOR_ROOT = os.path.join(BASE_DIR, 'tmp', 'build', 'styles')
# Add SASS preprocessor finder to resolve generated CSS
STATICFILES_FINDERS = [

View File

@@ -0,0 +1 @@
# Placeholder, can be overridden in Docker container with a custom settings like ALLOWED_HOSTS

18
siteroot/settings_prod.py Normal file
View File

@@ -0,0 +1,18 @@
"""
Production settings for linkding webapp
"""
# Start from development settings
# noinspection PyUnresolvedReferences
from .settings import *
# Turn of debug mode
DEBUG = False
# Turn off SASS compilation
SASS_PROCESSOR_ENABLED = False
ALLOWED_HOSTS = ['*']
# Import custom settings
# noinspection PyUnresolvedReferences
from .settings_custom import *