Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker build image failed? Failed to compute cache key: "/app" not found: not found

Error :

failed to compute cache key: "/app" not found: not found

My Dockerfile:

FROM python:3.7-alpine

ENV PYTHONUNBUFFERED 1

COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

RUN mkdir /app
WORKDIR /app
COPY ./app /app

RUN adduser -D user
USER user

Error in COPY ./app app

Operating System: MacOS

Is someone faced this problem ?

project structure

like image 414
tarp20 Avatar asked Oct 27 '25 07:10

tarp20


1 Answers

The APP folder does not exist in your project

You are trying to add an APP folder that does not exist into your docker container and it is complaining because there is no APP folder to add into the container

In the line

COPY ./APP /APP

The ./APP must reflect a folder that is in your project

like image 169
Tom Avatar answered Oct 28 '25 20:10

Tom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!