Commit 34ce3c10 authored by BAIRE Anthony's avatar BAIRE Anthony

run pip install in a separate step without copying the whole context

This is to avoid rebuilding this stage when the requirements.txt was
not updated.
parent d88d98de
......@@ -13,6 +13,9 @@ RUN apt-getq update && apt-getq install mysql-server default-libmysqlclient-dev
python-mysqldb supervisor\
&& pip3 install gunicorn
COPY requirements.txt /tmp/
RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt
COPY . /opt/allgo
COPY .env /opt/allgo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment