From bb450b30bb7284ef64f5c25d657b5d74a80e4d8c Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 15 Jan 2017 11:28:44 -0600 Subject: [PATCH] Update production build. --- Dockerfile-prod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile-prod b/Dockerfile-prod index 8514a75..2cbe116 100644 --- a/Dockerfile-prod +++ b/Dockerfile-prod @@ -8,6 +8,8 @@ RUN mkdir requirements ADD bikeshop_project /code COPY requirements /code/requirements RUN pip install -r requirements/production.txt -RUN npm install +WORKDIR /code/bikeshop_project +rm node_modules +RUN npm clean cache RUN npm run build-production RUN DJANGO_SETTINGS_MODULE=bikeshop.settings.production python manage.py collectstatic --no-input