修复监控视频展示并更新产品素材
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
FROM node:20-bookworm-slim
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
ENV TZ=Asia/Shanghai \
|
||||
NPM_CONFIG_REGISTRY=https://registry.npmmirror.com
|
||||
RUN echo $TZ > /etc/timezone && \
|
||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
dpkg-reconfigure -f noninteractive tzdata
|
||||
|
||||
# ffmpeg 用于向 nginx-rtMP 循环推流
|
||||
# ffmpeg 用于向 Nginx-RTMP 循环推流
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /simulator
|
||||
|
||||
COPY simulator/package.json ./
|
||||
RUN npm install --omit=dev
|
||||
RUN npm config set registry https://registry.npmmirror.com && \
|
||||
npm install --omit=dev
|
||||
|
||||
COPY simulator/simulator.js ./
|
||||
COPY simulator/assets /assets
|
||||
|
||||
Reference in New Issue
Block a user