Hi, Dockerfile COPY is failing, no matter what I am trying of the many other people that have reported this.
I see since 2015 there are complaints about this, and lots of advise. But it seams 2018 has a fair share of unresolved cases on stackoverflow, github etc.
I am running on a RaspberryPi 3, with versions:
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:30:52 2018
OS/Arch: linux/arm
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:26:37 2018
OS/Arch: linux/arm
Experimental: false
My Dockerfile - which needs to copy a setup config.ini from the folder I run the build, looks like this:
FROM python:2-alpine
# For RPi3 Alpine
RUN apk update && \
apk add --no-cache \
WORKDIR /usr/src/app
RUN git clone https://github.com/IoTPlay/ParadoxIP150v2.git .
RUN chmod +x ./IP150-MQTTv2.py
# here is where the problem resides... need a config.ini setup for my env to be added to same folder in the Image.
COPY config.ini /usr/src/app/config.ini
CMD ["python","./IP150-MQTTv2.py", "./config.ini"]
It returns something like:
COPY failed: stat /var/lib/docker/tmp/docker-builder291078178/home/iotp/.tmp/docker_paradox/config.ini: no such file or directory
Here is a similar issue on stackoverflow, March '18. But not resolved yet, I found many other similar unresolved ones on GitHub, with lots of advise on for instance the problem is lying in .gitignore. In my case I do not have that.
Here is another one, similar symptoms: GitHub docker for Mac
Any advise?