File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ==================================
2+ # devbase-trygroup: project-trygroup-prd / project-trygroup-prd-customer 専用環境
3+ # devbase-base を継承し、Poetry と pnpm を追加
4+ # ==================================
5+
6+ FROM devbase-base:latest
7+
8+ # --- root レイヤー: pnpm(npm グローバル) ---
9+ USER root
10+ RUN set -eux; \
11+ npm i -g pnpm; \
12+ npm cache clean --force; \
13+ rm -rf /root/.npm
14+
15+ # --- user レイヤー: Poetry ---
16+ # uv との競合回避:
17+ # - Poetry は公式インストーラで独立した専用 venv に導入する(uv の管理環境に非干渉)
18+ # - バイナリは ~/.local/bin/poetry、uv は ~/.local/bin/uv で名前衝突なし
19+ # - Poetry の仮想環境は既定の ~/.cache/pypoetry に作成し、
20+ # uv が使うプロジェクト直下の .venv と分離する(virtualenvs.in-project は false のまま)
21+ USER ubuntu
22+ RUN set -eux; \
23+ curl -sSL https://install.python-poetry.org | python3 -; \
24+ ~/.local/bin/poetry --version; \
25+ rm -rf ~/.cache/pypoetry/cache ~/.cache/pip
26+
27+ USER ubuntu
28+ WORKDIR /work
You can’t perform that action at this time.
0 commit comments