From 0ebe8fc267c3149071fc3cdcf8cf0e1188e08ad4 Mon Sep 17 00:00:00 2001 From: Brett Cannon <54418+brettcannon@users.noreply.github.com> Date: Wed, 3 Jul 2019 09:47:00 -0700 Subject: [PATCH] Try to make Docker's crazy COPY happy --- containers/python-3/.devcontainer/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/containers/python-3/.devcontainer/Dockerfile b/containers/python-3/.devcontainer/Dockerfile index 4e43fe4680..bcc70e41b9 100644 --- a/containers/python-3/.devcontainer/Dockerfile +++ b/containers/python-3/.devcontainer/Dockerfile @@ -8,9 +8,11 @@ FROM python:3 # Avoid warnings by switching to noninteractive ENV DEBIAN_FRONTEND=noninteractive -# Copy requirements.txt (if found) to a temp locaition so we can install it. Also -# copy "noop.txt" so the COPY instruction does not fail if no requirements.txt exists. -COPY requirements.txt .devcontainer/noop.txt /tmp/pip-tmp/ +# Copy requirements.txt (if found) to a temp location so we can install it. The `*` +# is required so COPY doesn't think that part of the command should fail is nothing is +# found. Also copy "noop.txt" so the COPY instruction copies _something_ to guarantee +# success somehow. +COPY *requirements.txt .devcontainer/noop.txt /tmp/pip-tmp/ # Configure apt and install packages RUN apt-get update \