-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (44 loc) · 1.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Some info
# build: sudo docker build -t lcdtainer:arm64 .
# tag: sudo docker tag lcdtainer:arm64 renaudrenaud/lcdtainer:arm64
# add user to the docker group sudo usermod -aG docker $USER and exit session
# login: docker login
# push: docker push renaudrenaud/lcdtainer:arm64
################################################################
# for debug
# run: docker run -d --name lcdtainer -p 8080:8080 renaudrenaud/lcdtainer:arm64
# python3 testLCD.py -d volume -v yes -s 192.168.1.120:9000
################################################################
# I2C
# - RASPBERRY I2C should be activated with sudo raspi-config
# - ORANGE PI 5 I2C add to /boot/ornagepiEnv.txt : overlays=spi4-m0-cs1-spidev i2c1-m2 i2c3-m0 i2c5-m3
# use pin 12 & 15
# then device has to be exposed
# devices:
# - "/dev/i2c-1:/dev/i2c-1"
###############################################################
# env:
# TZ=Asia/Shanghai
# LMS_LCD=0x3F
# LMS_I2C_PORT=1
# LMS_VIRTUAL_LCD=no
# LMS_DISPLAY_MODE=cpu
# LMS_PLAYER_NAME=
# LMS_SERVER=192.168.1.120:9000
FROM python:3.11.0-slim-bullseye
LABEL maintainer="renaudrenaud"
RUN apt-get update -yq \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt install -yq git \
&& apt install -yq python3 \
&& apt install -yq python3-pip
WORKDIR /home
RUN git clone https://github.com/renaudrenaud/LMSLCD2020.git
WORKDIR /home/LMSLCD2020
# ENTRYPOINT ["python3","testLCD.py"]
RUN python3 -m pip install -r requirements.txt
# RUN python3 testLCD.py -i 3 -l 0x27 -d volume -s 192.168.1.120:9000
# CMD ["python3","testLCD.py","-i","1","-d","bitrate","-s","192.168.1.120:9000"]
CMD ["python3","testLCD.py"]
# EXPOSE 8000
# CMD ["python3","-m", "http.server"]