Hi there,
I’m having issues installing nodejs through docker.
It was working since yesterday so I’m not sure if it’s related to balena.
Here’s my docker file:
FROM tobi312/rpi-nginx
RUN apt-get update && \
apt-get install -y apt-transport-https telnet nano iputils-ping less kmod nano net-tools ifupdown i2c-tools libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential libssl-dev g++ samba avahi-daemon avahi-discover wget curl cups printer-driver-gutenprint usbutils gphoto2 imagemagick build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# node install
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
RUN apt-get install -y nodejs
RUN useradd pi && \
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user && \
echo "pi:raspberry"|chpasswd && \
usermod -a -G lpadmin pi
# RUN wget https://raw.githubusercontent.com/gonzalo/gphoto2-updater/master/gphoto2-updater.sh && chmod +x gphoto2-updater.sh && sudo ./gphoto2-updater.sh --development
# Defines our working directory in container
WORKDIR /usr/src/app
# Copies the package.json first for better cache on later pushes
COPY ./package.json package.json
COPY start.sh start.sh
COPY ./cupsd.conf /etc/cups/cupsd.conf
COPY ./printers.conf /etc/cups/printers.conf
# This install npm dependencies on the resin.io build server,
# making sure to clean up the artifacts it creates in order to reduce the image size.
RUN npm install pm2 -g --no-optional
RUN JOBS=MAX npm install --production --unsafe-perm && rm -rf /tmp/*
# This will copy all files in our root to the working directory in the container
COPY . ./
# Enable systemd init system in container
ENV INITSYSTEM on
CMD ["bash", "start.sh"]
See error in attachment,
please let me know if you can identify the cause, thanks