Hi, everyone! I have an working prototype with code from end of 2017 that I decided to inspect today. After creating a new brand image into an microSD and starting it with resin Backend, and putting the following Dockerfile.template, I’ve got errors:
FROM resin/%%RESIN_MACHINE_NAME%%-node:6 AS buildstep
ENV DEVICE_TYPE=%%RESIN_MACHINE_NAME%%
RUN apt-get update \
&& apt-get install -y \
pigpio \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/app/bcm2835-1.52
COPY bcm2835-1.52 /usr/src/app/bcm2835-1.52
WORKDIR /usr/src/app/bcm2835-1.52
RUN ./configure
RUN make
RUN make install
WORKDIR /usr/src/app/
COPY package.json /usr/src/app/
RUN JOBS=MAX npm install --unsafe-perm --production \
&& npm cache clean
FROM resin/%%RESIN_MACHINE_NAME%%-node:6-slim
WORKDIR /usr/src/app
COPY --from=buildstep /usr/src/app/node_modules node_modules
COPY --from=buildstep /usr/src/app/bcm2835-1.52 bcm2835-1.52
RUN apt-get update \
&& apt-get install -y \
pigpio \
&& rm -rf /var/lib/apt/lists/*
ENV INITSYSTEM on
#.....#
COPY start /usr/src/app/
CMD bash start
The errors that I got is:
Step 7/13 : RUN ./configure
[main] —> Running in bf8f744175f9
[main] /bin/sh: 1: ./configure: Permission denied
Removing intermediate container bf8f744175f9
[main] The command ‘/bin/sh -c ./configure’ returned a non-zero code: 126
It seems that the inner user don’t have permissions to run ./configure, but how do I fix this? This is the same code from December-2017.
Thanks a lot from any help!