2017-01-01 21:01:01 -06:00
|
|
|
FROM python:3.6
|
2017-01-15 20:14:58 -06:00
|
|
|
RUN apt-get install curl
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
|
|
|
|
RUN apt-get install -y nodejs
|
2016-07-08 10:04:42 -06:00
|
|
|
RUN mkdir /code
|
|
|
|
WORKDIR /code
|
|
|
|
RUN mkdir requirements
|
2017-01-15 20:14:58 -06:00
|
|
|
ADD bikeshop_project /code
|
|
|
|
COPY requirements /code/requirements
|
|
|
|
RUN pip install -r requirements/production.txt
|
|
|
|
RUN npm cache clean
|
2017-01-15 21:15:25 -06:00
|
|
|
RUN npm install --unsafe-perm -g bower
|
|
|
|
RUN bower install --allow-root
|
2017-01-15 20:14:58 -06:00
|
|
|
RUN npm install --unsafe-perm
|
|
|
|
RUN npm run build-production
|
|
|
|
RUN DJANGO_SETTINGS_MODULE=bikeshop.settings.production python manage.py collectstatic --no-input
|
2017-01-16 19:39:11 -06:00
|
|
|
EXPOSE 8000
|