build: Dockerfile на python:3.11-slim без raisa_*, raisa-* npm в optionalDependencies
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
e432c1c542
commit
15a06a075d
15
.dockerignore
Normal file
15
.dockerignore
Normal file
@ -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
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -322,9 +322,7 @@ dist
|
|||||||
|
|
||||||
# Custom ignore
|
# Custom ignore
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Dockerfile
|
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
.dockerignore
|
|
||||||
.vscode
|
.vscode
|
||||||
my_project_env
|
my_project_env
|
||||||
.cursorignore
|
.cursorignore
|
||||||
|
|||||||
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -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"]
|
||||||
@ -14,8 +14,6 @@
|
|||||||
"antd": "^6.5.0",
|
"antd": "^6.5.0",
|
||||||
"markdown-to-jsx": "^9.1.2",
|
"markdown-to-jsx": "^9.1.2",
|
||||||
"pdfjs-dist": "^5.7.284",
|
"pdfjs-dist": "^5.7.284",
|
||||||
"raisa-fastapi-protected-web": "^1.0.0",
|
|
||||||
"raisa-ui": "^1.0.0",
|
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-daisyui": "^5.0.5",
|
"react-daisyui": "^5.0.5",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
@ -32,5 +30,9 @@
|
|||||||
"daisyui": "^4.12.10",
|
"daisyui": "^4.12.10",
|
||||||
"tailwindcss": "^3.4.13",
|
"tailwindcss": "^3.4.13",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.7.3"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"raisa-fastapi-protected-web": "^1.0.0",
|
||||||
|
"raisa-ui": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user