将平台配置修改为 v2-hdmiusb-rpi4

Docker 构建时运行清理缓存的命令
This commit is contained in:
mofeng-git 2024-08-04 15:26:20 +08:00
parent a5e5e2b76a
commit 6a966af5fb
2 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,7 @@ LIBGPIOD_VERSION ?= 1.6.3
USTREAMER_MIN_VERSION ?= $(shell grep -o 'ustreamer>=[^"]\+' PKGBUILD | sed 's/ustreamer>=//g')
DEFAULT_PLATFORM ?= v2-hdmi-rpi4
DEFAULT_PLATFORM ?= v2-hdmiusb-rpi4
DOCKER ?= docker

View File

@ -79,7 +79,9 @@ RUN pacman --noconfirm --ask=4 -Syy \
&& rm -rf /var/cache/pacman/pkg/*
COPY testenv/requirements.txt requirements.txt
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip install --break-system-packages -r requirements.txt
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
&& pip install --break-system-packages -r requirements.txt \
&& pip cache purge
# https://stackoverflow.com/questions/57534295
WORKDIR /root
@ -87,7 +89,8 @@ RUN npm config set registry https://registry.npmmirror.com \
&& npm install htmlhint -g \
&& npm install pug \
&& npm install pug-cli -g \
&& npm install @babel/eslint-parser -g
&& npm install @babel/eslint-parser -g \
&& npm cache clean -f
WORKDIR /
ARG USTREAMER_MIN_VERSION