docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile

Here is how to specify dockerfile. Sorry I cannot do it in comments as formatting is not supported over there.

The dockerfile is searched into the defined build context, that is, you don’t specify any path, just the filename of your Dockerfile.

https://docs.docker.com/compose/compose-file/#context

app:
    build:
      context: app
      dockerfile: Dockerfile

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)