File tree Expand file tree Collapse file tree 3 files changed +2036
-1378
lines changed Expand file tree Collapse file tree 3 files changed +2036
-1378
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ RUN apt-get update \
7171 iptables \
7272 openssh-client \
7373 pkgconf \
74- python3 python3-dev python3-pip \
74+ python3 python3-dev python3-pip python3-venv \
7575 screen tmux \
7676 tzdata \
7777 tini \
@@ -85,14 +85,17 @@ RUN apt-get update \
8585 libcap2 \
8686 # for debugging
8787 gdb strace trace-cmd \
88- && rm -rf /var/lib/apt/lists/* \
89- && pip3 install --upgrade poetry
88+ && rm -rf /var/lib/apt/lists/*
89+
90+ RUN curl -sSL https://install.python-poetry.org | python3 -
91+ ENV PATH="/root/.local/bin:$PATH"
92+ # RUN pip3 install --upgrade poetry
9093
9194ARG VENV="/opt/venv"
9295COPY tools/devctr/poetry.lock /tmp/poetry/
9396COPY tools/devctr/pyproject.toml /tmp/poetry/
9497RUN cd /tmp/poetry \
95- && virtualenv $VENV \
98+ && python3 -m venv $VENV \
9699 && . $VENV/bin/activate \
97100 && poetry install --only main --no-directory --no-interaction \
98101 && rm -rf ~/.local/share/virtualenv/ ~/.cache /tmp/poetry \
You can’t perform that action at this time.
0 commit comments