From 586f9b08c94a6b6abff05a10a85670bac2c408d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Wed, 27 Aug 2014 18:18:07 -0700 Subject: [PATCH] Add requirements.txt in a separate step --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a52d9b96..1f8d52e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ FROM ubuntu:12.04 MAINTAINER Docker Education Team RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl python-all python-pip wget -ADD ./webapp /opt/webapp/ +ADD ./webapp/requirements.txt /opt/webapp/requirements.txt WORKDIR /opt/webapp RUN pip install -r requirements.txt +ADD ./webapp /opt/webapp/ EXPOSE 5000 CMD ["python", "app.py"]