Merge pull request #3413 from emanuelschuetze/dockerfile-2

Updated Dockerfile to use requirements_big_mode.txt.
This commit is contained in:
Emanuel Schütze 2017-09-21 16:10:27 +02:00 committed by GitHub
commit dfafa69381

View File

@ -8,10 +8,7 @@ RUN cd /tmp && tar xfvJ node-v6.11.3-linux-x64.tar.xz
RUN ln -sf /tmp/node-v6.11.3-linux-x64/bin/node /usr/bin/node RUN ln -sf /tmp/node-v6.11.3-linux-x64/bin/node /usr/bin/node
RUN useradd -m openslides RUN useradd -m openslides
RUN mkdir /app RUN mkdir /app
ADD package.json /app COPY package.json yarn.lock bower.json gulpfile.js /app/
ADD yarn.lock /app
ADD bower.json /app
ADD gulpfile.js /app
WORKDIR /app WORKDIR /app
RUN chown -R openslides /app RUN chown -R openslides /app
USER openslides USER openslides
@ -20,9 +17,8 @@ RUN $HOME/.yarn/bin/yarn --non-interactive
# INSTALL PYTHON DEPENDENCIES # INSTALL PYTHON DEPENDENCIES
USER root USER root
ADD requirements_production.txt /app/requirements_production.txt COPY requirements_*.txt /app/
RUN pip install -r /app/requirements_production.txt RUN pip install -r /app/requirements_big_mode.txt
RUN pip install django-redis asgi-redis django-redis-sessions psycopg2
## Clean up ## Clean up
RUN apt-get remove -y python3-pip wget curl RUN apt-get remove -y python3-pip wget curl