Pull in requirements sooner.

This commit is contained in:
Matthew Blissett 2019-01-16 17:44:49 +01:00
parent dc12747c0f
commit 30e37ac921

View File

@ -4,11 +4,13 @@ WORKDIR /usr/src/app
VOLUME /mapping VOLUME /mapping
COPY . /usr/src/app/ COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "-u","/usr/src/app/server.py"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update \ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
emacs-nox emacs-nox
CMD ["python", "-u","/usr/src/app/server.py"]
COPY . /usr/src/app/