Rebar3 failed to fetch dependencies in docker container

62 views Asked by At

Rebar3 dependencies installing locally but when I'm trying to run it inside the container raising error for all dependencies e.g:

#0 1.936 ===> Failed to fetch and copy dep: {git,"https://github.com/mochi/mochiweb.git",
#0 1.936                                   {ref,
#0 1.936                                       "073349423408e4bae08c90f8d16fee5317e45263"}}

Base image: erlang:alpine

OTP version: 26.0.1

Rebar3 version: 3.20.0

1

There are 1 answers

0
Moeen On

Git was not installed on my container and it fixed by adding following code to Dockerfile:

RUN apk add git