I've a folder project structure as "cfn-APP" and inside this folder I've the following folders
NETPAYMENTS
- Config
- Tests
- Locators
Here Config, Tests, Locators are folders.
Similarly I've another folder inside "cfn-APP" (Again Config, Tests, Locators are folders)
PAYMENTS
- Config
- Tests
- Locators
Under NETPAYMENTS I've a Dockerfile similarly under PAYMENTS folder.
My buildspec.yaml is in the root "cfn-APP"
FROM python:3.10
WORKDIR /usr/src/app
COPY . .
RUN echo Copying NETPAYMENTS folder....
COPY NETPAYMENTS /usr/src/app/NETPAYMENTS
RUN echo Copying other py files from root....
COPY ../*py .
I want the entire NETPAYMENTS and PAYMENTS folder to be copied (along with the contents) to my WORKDIR.
But when the pipeline runs it gives error
#8 [ 5/29] COPY NETPAYMENTS /usr/src/app/NETPAYMENTS #8 ERROR: failed to calculate checksum of ref moby::hybzvap3grz7r41j6b6le6xss: "/NETPAYMENTS": not found
I am sure the same error will happen when the Dockerfile is executed from PAYMENTS folder as well.
Any idea what's wrong with this?
Make sure running the build commands from the right directory.