|
@ -17,6 +17,5 @@ RUN bower install --allow-root |
|
|
ADD ./bikeshop_project/package.json package.json |
|
|
ADD ./bikeshop_project/package.json package.json |
|
|
RUN npm install --unsafe-perm |
|
|
RUN npm install --unsafe-perm |
|
|
RUN npm run build-production |
|
|
RUN npm run build-production |
|
|
RUN DJANGO_SETTINGS_MODULE=bikeshop.settings.production python manage.py test |
|
|
|
|
|
CMD 'bash -c "PYTHONUNBUFFERED=TRUE python manage.py migrate --no-input && python manage.py collectstatic --no-input && python manage.py rebuild_index --noinput && gunicorn --log-file=- -b 0.0.0.0:8000 bikeshop.wsgi:application"' |
|
|
CMD 'bash -c "PYTHONUNBUFFERED=TRUE python manage.py migrate --no-input && python manage.py collectstatic --no-input && python manage.py rebuild_index --noinput && gunicorn --log-file=- -b 0.0.0.0:8000 bikeshop.wsgi:application"' |
|
|
EXPOSE 8000 |
|
|
EXPOSE 8000 |
|
|