Skip to content

Instantly share code, notes, and snippets.

@heffo42
Created July 7, 2019 17:44
Show Gist options
  • Save heffo42/580ec73638fb585b86b477cbb4059ed7 to your computer and use it in GitHub Desktop.
Save heffo42/580ec73638fb585b86b477cbb4059ed7 to your computer and use it in GitHub Desktop.
FROM python:3.6
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENTRYPOINT [ "python", "-u", "main.py" ]
@michael-ziedalski
Copy link

michael-ziedalski commented Jul 20, 2019

In following your usejournal article, whenever this runs for me, I get an error saying Step 2/5 : COPY requirements.txt ./ COPY failed: stat /var/lib/docker/tmp/docker-builder467102557/requirements.txt: no such file or directory.

How am I supposed to get around this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment