diff --git a/Dockerfile b/Dockerfile index 4a91bb2..d2dc01a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,3 +14,4 @@ RUN bower install --allow-root RUN npm install --unsafe-perm RUN npm run build-production RUN DJANGO_SETTINGS_MODULE=bikeshop.settings.production python manage.py collectstatic --no-input +EXPOSE 8000 diff --git a/bikeshop_project/bikeshop/settings/base.py b/bikeshop_project/bikeshop/settings/base.py index 350b1f5..16fbedf 100644 --- a/bikeshop_project/bikeshop/settings/base.py +++ b/bikeshop_project/bikeshop/settings/base.py @@ -140,7 +140,7 @@ WEBPACK_LOADER = { 'DEFAULT': { 'CACHE': False, 'BUNDLE_DIR_NAME': 'bundles/', # must end with slash - 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats.json'), + 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'), 'POLL_INTERVAL': 0.1, 'IGNORE': ['.+\.hot-update.js', '.+\.map'] } diff --git a/bikeshop_project/bikeshop/settings/production.py b/bikeshop_project/bikeshop/settings/production.py index e50f654..ce4be37 100644 --- a/bikeshop_project/bikeshop/settings/production.py +++ b/bikeshop_project/bikeshop/settings/production.py @@ -41,7 +41,7 @@ WEBPACK_LOADER = { 'DEFAULT': { 'CACHE': True, 'BUNDLE_DIR_NAME': 'dist/', # must end with slash - 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json'), + 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats-prod.json'), 'POLL_INTERVAL': 0.1, 'IGNORE': ['.+\.hot-update.js', '.+\.map'] }