I'm new to docker and erlang. I've installed docker and VSCode on my windows machine and I want to learn to develop erlang in the container, so I created Dockerfile:
FROM erlang:latest
WORKDIR /project
COPY . .
and .devcontainer directory with devcontainer.json file:
{
"name": "Erlang dev container",
"context": ".",
"dockerFile": "Dockerfile",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": []
}
After I opened my project folder in container I can issue bash commands and I can start erl but when I try to ask rebar to test my code with
rebar eunit
or
rebar3 eunit
I get error:
can't find include lib "eunit/lib/eunit.hrl"
What did I do wrong? Is the erlang:latest image supposed to be used for erlang development? How to fix it?