Skip to content

Commit e8c27d0

Browse files
committed
⚰️ Remove Poetry.
Uv is just better
1 parent fbff435 commit e8c27d0

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

Dockerfile

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ ENV POETRY_CACHE_DIR=/var/cache/poetry \
1515
PIP_CACHE_DIR=/var/cache/pip
1616
RUN 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
# ############################################################################################################
2719
FROM python-base AS devcontainer
2820
ARG 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
7160
USER ${USERNAME}
@@ -77,13 +66,6 @@ RUN set -x ; \
7766
&& sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
7867
COPY --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

8870
RUN sudo bash -c "rm -rf {./*,/tmp/*,/var/cache/apt/*,/var/lib/apt/lists/*,$PIP_CACHE_DIR/*}"
8971
ENTRYPOINT [ "/usr/bin/zsh" ]

0 commit comments

Comments
 (0)