Skip to content

Commit 49e0166

Browse files
authored
feat: add poetry (#37)
1 parent fcca8e3 commit 49e0166

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,13 @@ RUN echo "Etc/UTC" > /etc/timezone
8080

8181
RUN echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/99-recommends
8282

83+
# setup poetry
84+
ENV POETRY_VERSION="2.1.2"
85+
ENV POETRY_INSTALL_PATH="${HOME}/.local/share/poetry"
86+
RUN python -m venv ${POETRY_INSTALL_PATH} && \
87+
${POETRY_INSTALL_PATH}/bin/pip install -U pip setuptools && \
88+
${POETRY_INSTALL_PATH}/bin/pip install poetry==${POETRY_VERSION} && \
89+
${POETRY_INSTALL_PATH}/bin/poetry config virtualenvs.create false && \
90+
ln -s ${POETRY_INSTALL_PATH}/bin/poetry /usr/local/bin/poetry
91+
8392
CMD ["zsh"]

0 commit comments

Comments
 (0)