move to uv package manager

This commit is contained in:
Alex Shnitman
2025-09-24 16:30:58 +03:00
parent 87b6a6412c
commit ca875665c9
8 changed files with 1339 additions and 1979 deletions

View File

@@ -1,4 +1,4 @@
FROM node:lts-alpine as builder
FROM node:lts-alpine AS builder
WORKDIR /metube
COPY ui ./
@@ -10,17 +10,15 @@ FROM python:3.13-alpine
WORKDIR /app
COPY Pipfile* docker-entrypoint.sh ./
COPY pyproject.toml uv.lock docker-entrypoint.sh ./
# Use sed to strip carriage-return characters from the entrypoint script (in case building on Windows)
# Install dependencies
RUN sed -i 's/\r$//g' docker-entrypoint.sh && \
chmod +x docker-entrypoint.sh && \
apk add --update ffmpeg aria2 coreutils shadow su-exec curl tini && \
apk add --update --virtual .build-deps gcc g++ musl-dev && \
pip install --no-cache-dir pipenv && \
pipenv install --system --deploy --clear && \
pip uninstall pipenv -y && \
apk add --update --virtual .build-deps gcc g++ musl-dev uv && \
UV_PROJECT_ENVIRONMENT=/usr/local uv sync --frozen --no-dev --compile-bytecode && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
mkdir /.cache && chmod 777 /.cache