You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create and edit Dockerfile: nano /home/pi/docker/magicmirror/Dockerfile
add this:
FROM hypriot/rpi-node:latest
ENV NODE_ENV production
WORKDIR /opt/magic_mirror
RUN git clone --depth 1 -b master https://github.com/MichMich/MagicMirror.git .
RUN cp -R modules /opt/default_modules
RUN cp -R config /opt/default_config
RUN npm install --unsafe-perm --silent
COPY docker-entrypoint.sh /opt
RUN apt-get update \
&& apt-get -qy install dos2unix \
&& dos2unix /opt/docker-entrypoint.sh \
&& chmod +x /opt/docker-entrypoint.sh
RUN apt-get -y install libgtk-3-0
RUN apt-get -y install libx11-xcb-dev
RUN apt-get -y install libxtst6
RUN apt-get -y install libxss1
RUN apt-get -y install libgconf-2-4
RUN apt-get -y install libnss3
RUN apt-get -y install libasound2
EXPOSE 8080
CMD ["npm start"]
ENTRYPOINT ["/opt/docker-entrypoint.sh"]
create and edit Dockerfile: nano /home/pi/docker/magicmirror/docker-entrypoint.sh
add this:
#!/bin/bash
if [ ! -f /opt/magic_mirror/modules ]; then
cp -Rn /opt/default_modules/. /opt/magic_mirror/modules
fi
if [ ! -f /opt/magic_mirror/config ]; then
cp -Rn /opt/default_config/. /opt/magic_mirror/config
fi
$@
I used raspbian-desktop from this link:
https://www.raspberrypi.org/downloads/raspbian/
I enabled ssh with:
I update host system:
run raspi-config:
sudo raspi-config
go to -> "Interfacing Options" -> "Camera" -> Enable,
go to -> "Advanced Options" -> "Memory Split" -> 256
go to -> "Finish" -> "Reboot"
I installed docker:
I Installed x11docker:
I create folders:
create and edit Dockerfile:
nano /home/pi/docker/magicmirror/Dockerfile
add this:
create and edit Dockerfile:
nano /home/pi/docker/magicmirror/docker-entrypoint.sh
add this:
build docker container:
sudo docker build -t magicmirror /home/pi/docker/magicmirror
from ssh I run this:
The text was updated successfully, but these errors were encountered: