dockerfix-5

This commit is contained in:
2025-09-10 12:07:20 +03:00
parent 5e8c5a1af7
commit 02e57922d5
2 changed files with 7 additions and 6 deletions

View File

@@ -29,6 +29,8 @@ RUN uv sync --frozen --no-install-project
# 🏗️ Frontend build (build with all dependencies)
COPY . .
# Install local package in builder stage
RUN uv sync --frozen --no-editable
RUN npm run build
# 🚀 Production stage
@@ -46,14 +48,13 @@ RUN mkdir -p /app/.cache/huggingface && chmod 755 /app/.cache/huggingface
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
ENV HF_HOME=/app/.cache/huggingface
# 📦 Copy compiled Python environment from builder
# 🚀 Application code (rebuilt on any code change)
COPY . .
# 📦 Copy compiled Python environment from builder (includes all dependencies + local package)
COPY --from=builder /app/.venv /app/.venv
ENV PATH="/app/.venv/bin:$PATH"
# 🚀 Application code and final setup (rebuilt on any code change)
COPY . .
RUN uv sync --frozen --no-editable --no-build
# 📦 Copy built frontend from builder stage
COPY --from=builder /app/dist ./dist

View File

@@ -1,6 +1,6 @@
[project]
name = "discours-core"
version = "0.9.18"
version = "0.9.20"
description = "Core backend for Discours.io platform"
authors = [
{name = "Tony Rewin", email = "tonyrewin@yandex.ru"}