File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ EXPOSE 8000
2020# define work environment
2121WORKDIR /app
2222
23+ ADD build.sh /app/tmp/build.sh
24+
25+ ADD requirements.txt /app/requirements.txt
26+
27+ RUN DOCKER_BUILD=true /app/tmp/build.sh
28+
2329ADD . /app
2430
25- RUN DOCKER_BUILD=true /app/build.sh
31+ # Create static resources
32+ RUN /app/manage.py collectstatic --settings=deis.settings --noinput
Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ mkdir -p /var/log/deis && chown -R deis:deis /var/log/deis
3434# install dependencies
3535pip install -r /app/requirements.txt
3636
37- # Create static resources
38- /app/manage.py collectstatic --settings=deis.settings --noinput
39-
4037# cleanup. indicate that python, libpq and libyanl are required packages.
4138apt-mark unmarkauto python python-openssl libpq5 libpython2.7 libyaml-0-2 && \
4239 apt-get remove -y --purge python-dev gcc cpp libpq-dev libyaml-dev git && \
You can’t perform that action at this time.
0 commit comments