1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-05-09 00:34:25 +08:00

尝试修复编译卡住问题

This commit is contained in:
涵曦
2026-01-12 18:44:23 +08:00
parent e6a7af0293
commit 8a6ec672c4
3 changed files with 19 additions and 27 deletions

View File

@@ -1,15 +1,11 @@
FROM hanxi/xiaomusic:builder AS builder
RUN pip install -U pdm
ENV PDM_CHECK_UPDATE=false
WORKDIR /app
COPY pyproject.toml README.md package.json .
COPY pyproject.toml README.md package.json ./
RUN pdm install --prod --no-editable -v
RUN node -v && npm -v
RUN uname -m
RUN npm config list
RUN npm install --verbose
RUN pip install -U pdm && \
pdm install --prod --no-editable -v && \
npm install --loglevel=verbose
COPY xiaomusic/ ./xiaomusic/
COPY plugins/ ./plugins/

View File

@@ -1,7 +1,12 @@
FROM python:3.12-alpine3.22
FROM python:3.12-slim-bookworm
RUN apk add --no-cache --virtual .build-deps build-base python3-dev libffi-dev openssl-dev zlib-dev jpeg-dev libc6-compat gcc musl-dev \
&& apk add --no-cache nodejs npm
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U pdm
ENV PDM_CHECK_UPDATE=false
@@ -9,10 +14,7 @@ WORKDIR /app
COPY pyproject.toml README.md package.json ./
RUN pdm install --prod --no-editable -v
RUN node -v && npm -v
RUN uname -m
RUN npm config list
RUN npm install --verbose
RUN npm install --loglevel=verbose
COPY xiaomusic/ ./xiaomusic/
COPY plugins/ ./plugins/

View File

@@ -1,19 +1,13 @@
FROM python:3.12-alpine3.22
FROM python:3.12-slim-bookworm
RUN apk add --no-cache bash\
wget \
xz \
tiff \
openjpeg \
libxcb \
RUN apt-get update && apt-get install -y --no-install-recommends \
supervisor \
vim \
libc6-compat \
ffmpeg \
nodejs \
npm \
curl \
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN mkdir -p /app/ffmpeg/bin \
&& ln -s /usr/bin/ffmpeg /app/ffmpeg/bin/ffmpeg \