Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Try to make Docker's crazy COPY happy
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Jul 3, 2019
1 parent 15eb7eb commit 0ebe8fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions containers/python-3/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0ebe8fc

Please sign in to comment.