C
C#2y ago
gino9872

❔ ❔ Docker-Compose cannot find Dockerfile

Hey! when i try to do docker-compose build i get this error : failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3526330123/Dockerfile: no such file or directory this is my YML file:
version: "3.9"
services:
frontend:
build: ./Individueel_FrontEnd
ports:
- 5173:5173
backend:
build: ./BackEnd/OnChat
ports:
- 7019:7019
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=myPassword
database:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- 1433:1433
volumes:
- './drive:/var/opt/mssql'
version: "3.9"
services:
frontend:
build: ./Individueel_FrontEnd
ports:
- 5173:5173
backend:
build: ./BackEnd/OnChat
ports:
- 7019:7019
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=myPassword
database:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- 1433:1433
volumes:
- './drive:/var/opt/mssql'
I'm 100% sure my dockerfile has the correct name "Dockerfile". Does anyone else had this problem?
5 Replies
Cisien
Cisien2y ago
The build path is relative to the compose. I cant remember if its the path to the docker file or the build context, so maybe try both
gino9872
gino9872OP2y ago
i did, still doenst work..
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
gino9872
gino9872OP2y ago
no :(
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server