@@ -15,14 +15,6 @@ ENV POETRY_CACHE_DIR=/var/cache/poetry \
1515 PIP_CACHE_DIR=/var/cache/pip
1616RUN mkdir -p $PIP_CACHE_DIR $POETRY_CACHE_DIR
1717
18- # ############################################################################################################
19- FROM python-base AS poetry-base
20-
21- # Poetry install
22- RUN set -x; \
23- curl -sSL https://install.python-poetry.org | python3 - \
24- && poetry self add poetry-bumpversion
25-
2618# ############################################################################################################
2719FROM python-base AS devcontainer
2820ARG USERNAME
@@ -63,9 +55,6 @@ RUN set -x; \
6355 apt-get -y install --no-install-recommends sudo \
6456 && echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
6557
66- # Copy Poetry from other stage and add to path
67- COPY --from=poetry-base --chown=${USERNAME}:${USERNAME} ${POETRY_HOME} ${POETRY_HOME}
68- RUN bash -c "chown -R $USERNAME:$USERNAME {$PIP_CACHE_DIR,$POETRY_CACHE_DIR,$UV_CACHE_DIR}"
6958
7059# Non Root User
7160USER ${USERNAME}
@@ -77,13 +66,6 @@ RUN set -x ; \
7766 && sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
7867COPY --chown=${USERNAME}:${USERNAME} .zshrc .zshrc
7968
80- # Poetry
81- ENV PATH="/home/${USERNAME}/.local/bin/:${PATH}"
82- RUN set -x ; \
83- poetry completions bash | sudo tee /etc/bash_completion.d/poetry.bash-completion > /dev/null \
84- && mkdir -p ./.oh-my-zsh/plugins/poetry \
85- && poetry completions zsh > ./.oh-my-zsh/plugins/poetry/_poetry \
86- && poetry config installer.max-workers 10
8769
8870RUN sudo bash -c "rm -rf {./*,/tmp/*,/var/cache/apt/*,/var/lib/apt/lists/*,$PIP_CACHE_DIR/*}"
8971ENTRYPOINT [ "/usr/bin/zsh" ]
0 commit comments