diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 7d4de04..0000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "bikeshop_project/vendor" -} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b36c0ae..4a91bb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ ADD bikeshop_project /code COPY requirements /code/requirements RUN pip install -r requirements/production.txt RUN npm cache clean +RUN npm install --unsafe-perm -g bower +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 diff --git a/bikeshop_project/.bowerrc b/bikeshop_project/.bowerrc new file mode 100644 index 0000000..4dece5f --- /dev/null +++ b/bikeshop_project/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "vendor" +} \ No newline at end of file diff --git a/bower.json b/bikeshop_project/bower.json similarity index 92% rename from bower.json rename to bikeshop_project/bower.json index 63a43fb..5163b81 100644 --- a/bower.json +++ b/bikeshop_project/bower.json @@ -9,7 +9,6 @@ "license": "MIT", "homepage": "", "private": true, - "directory": "bikeshop_project/vendor", "ignore": [ "**/.*", "node_modules",