Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dockerfile ..... ✖ Error: Command failed: /bin/sh -c autoreconf -ivf /bin/sh: autoreconf: not found

Here is my Dockerfile:

FROM node:10-alpine

RUN mkdir -p /home/node/salvator/node_modules && chown -R node:node /home/node/$

WORKDIR /home/node/salvator

COPY package*.json ./

USER node

RUN npm install

COPY --chown=node:node . .

EXPOSE 3000

CMD [ "pm2 start", "index.js" ]

I am cloning the app repository from bitbucket and i cant understand what do ineed to write in place of WORKDIR and RUN mkdir

like image 334
devil child Avatar asked Mar 05 '20 10:03

devil child


1 Answers

autoconf is a dependency you're looking for.
note: it's not called autoreconf.

RUN apk add --no-cache autoconf

then you will be able to use autoreconf without issues.

like image 91
Jakub Mucha Avatar answered Nov 15 '22 00:11

Jakub Mucha