From 15a06a075d67106dbb5a4b5477116b1cfcd66022 Mon Sep 17 00:00:00 2001 From: Andrey Epifancev Date: Sat, 3 Oct 2026 18:28:43 +0400 Subject: [PATCH] =?UTF-8?q?build:=20Dockerfile=20=D0=BD=D0=B0=20python:3.1?= =?UTF-8?q?1-slim=20=D0=B1=D0=B5=D0=B7=20raisa=5F*,=20raisa-*=20npm=20?= =?UTF-8?q?=D0=B2=20optionalDependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- .dockerignore | 15 +++++++++++++++ .gitignore | 2 -- Dockerfile | 19 +++++++++++++++++++ web/package.json | 6 ++++-- 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..336e34d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +.git +.superpowers +.claude +.codegraph +openspec +docs +setup +**/__pycache__ +**/*.pyc +api/.venv +api/.env +**/.mypy_cache +**/.ruff_cache +**/.pytest_cache +web/node_modules diff --git a/.gitignore b/.gitignore index c2b4ca0..8b6cf20 100644 --- a/.gitignore +++ b/.gitignore @@ -322,9 +322,7 @@ dist # Custom ignore .DS_Store -Dockerfile docker-compose.yml -.dockerignore .vscode my_project_env .cursorignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7d9538b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# Образ для dev и `make check-full`. Контекст сборки — корень репозитория arm-core. +# Платформенные пакеты raisa_* (Nexus) в образ не ставятся — та же логика, что в `make venv`. +FROM python:3.11-slim + +ENV PYTHONUNBUFFERED=1 \ + PIP_DISABLE_PIP_VERSION_CHECK=1 + +WORKDIR /app/api + +COPY api/requirements.txt ./requirements.txt +RUN grep -v '^raisa_' requirements.txt > /tmp/req.txt \ + && pip install --no-cache-dir -r /tmp/req.txt \ + && rm /tmp/req.txt + +COPY api/ ./ + +EXPOSE 8000 + +CMD ["python", "run_server.py"] diff --git a/web/package.json b/web/package.json index df8ff5d..cafdae1 100644 --- a/web/package.json +++ b/web/package.json @@ -14,8 +14,6 @@ "antd": "^6.5.0", "markdown-to-jsx": "^9.1.2", "pdfjs-dist": "^5.7.284", - "raisa-fastapi-protected-web": "^1.0.0", - "raisa-ui": "^1.0.0", "react": "^18.3.1", "react-daisyui": "^5.0.5", "react-dom": "^18.3.1", @@ -32,5 +30,9 @@ "daisyui": "^4.12.10", "tailwindcss": "^3.4.13", "typescript": "^5.7.3" + }, + "optionalDependencies": { + "raisa-fastapi-protected-web": "^1.0.0", + "raisa-ui": "^1.0.0" } }