Docker Community Forums

Share and learn in the Docker community.

RUN make install inside Dockerfile

Hi Dockerites,
I am getting an error while running a command inside my Dockerfile: ‘make install’ as go: updates to go.mod needed, disabled by -mod=readonly
I am attaching my Dockerfile below for reference:

FROM golang:alpine
MAINTAINER ‘Mayank kumar’
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python
ADD ./zapp.tar .
WORKDIR ./zapp
RUN apk add --no-cache $PACKAGES &&
make install --> this part is erroring out
CMD [“gaiad”]