Skip to content

podman build fails on step 6: Could not find a Mix.Project #83

@proJM-Coding

Description

@proJM-Coding

Hello, coming from issue #26 I mentioned that I couldn't build the image when using podman (I haven't tried with docker but I don't expect a difference). I have followed the steps listed in the INSTALL.md under the heading Running matrix2051 as a container:

git clone https://github.com/progval/matrix2051.git

cd matrix2051

podman build -t matrix2051 --file dist/Containerfile .

This fails on set 6 RUN mix deps.get with the error:

** (Mix) Could not find a Mix.Project, please ensure you are running Mix in a directory with a mix.exs file
Error: building at STEP "RUN mix deps.get": while running runtime: exit status 1

Looking at the Containerfile I don't understand why the mix.exs is not being picked up (Edit: I think when it is copying is will copy only the dist folder but this is just a guess. I have done nothing to look into it) so I hope someone can help me. Just in case I made an error, I did write down the error rather than copy since it was on a laptop without a functioning browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions