#StackBounty: #docker #dockerhub copy or add command not executed on docker hub

Bounty: 50

This dockerfile works as expected on my laptop. But it fails if I use automated builds on docker hub.

FROM ubuntu
# Install required software via apt and pip
RUN apt-get -y update && 
    apt-get install -y 
    awscli 
    python 
    python-pip 
    software-properties-common 
 && add-apt-repository ppa:ubuntugis/ppa 
 && apt-get -y update 
 && apt-get install -y 
    gdal-bin 
 && pip install boto3

# Copy Build Thumbnail script to Docker image and add execute permissions
COPY build-thumbnails.py build-thumbnails.py

RUN chmod +x build-thumbnails.py

The error is:

Step 6/7 : COPY build-thumbnails.py build-thumbnails.py
COPY failed: stat /var/lib/docker/tmp/docker-builder259560514/build-thumbnails.py: no such file or directory

The repo is here…
https://github.com/shantanuo/docker/blob/master/batch/Dockerfile

Why would copy or add command not work for automated builds?


Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.