mirror of
https://github.com/Balshgit/python-poetry.git
synced 2025-09-11 21:50:40 +03:00
update Dockerfile
This commit is contained in:
parent
8bc9a22054
commit
c06c1a453c
@ -30,11 +30,8 @@ RUN apt update \
|
||||
libpq-dev \
|
||||
nano \
|
||||
&& export TERM=xterm \
|
||||
# Installing `poetry` package manager:
|
||||
# # https://github.com/python-poetry/poetry
|
||||
# && curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install poetry
|
||||
&& pip install "poetry==$POETRY_VERSION"
|
||||
|
||||
|
||||
RUN groupadd ${USER} && useradd -g ${USER} ${USER}
|
||||
@ -46,7 +43,7 @@ COPY --chown=${USER}:${USER} ./pyproject.toml /code/
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
RUN export PATH="/root/.local/bin:$PATH" \
|
||||
RUN export PATH="${PATH}:/root/.local/bin" \
|
||||
&& poetry --version \
|
||||
&& poetry lock \
|
||||
&& poetry export -f requirements.txt --with dev --without-hashes --output requirements.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user