mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
将平台配置修改为 v2-hdmiusb-rpi4
Docker 构建时运行清理缓存的命令
This commit is contained in:
parent
a5e5e2b76a
commit
6a966af5fb
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user