Skip to content

Commit

Permalink
Fix compose and demon dockerfiles
Browse files Browse the repository at this point in the history
Workaround --without-hashes for python-poetry/poetry#3472
  • Loading branch information
heralden committed Mar 25, 2022
1 parent bdc46e6 commit 36b45a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ WORKDIR /compose
ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.1.8
POETRY_VERSION=1.1.13

RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv venv

ADD pyproject.toml poetry.lock /compose/
RUN poetry export -f requirements.txt | venv/bin/pip install -r /dev/stdin
RUN poetry export --without-hashes -f requirements.txt | venv/bin/pip install -r /dev/stdin

COPY . /compose
RUN poetry build && venv/bin/pip install dist/*.whl
Expand Down
4 changes: 2 additions & 2 deletions demon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ WORKDIR /demon
ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.1.8
POETRY_VERSION=1.1.13

RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv venv

ADD pyproject.toml poetry.lock /demon/
RUN poetry export -f requirements.txt | venv/bin/pip install -r /dev/stdin
RUN poetry export --without-hashes -f requirements.txt | venv/bin/pip install -r /dev/stdin

COPY . /demon
RUN poetry build && venv/bin/pip install dist/*.whl
Expand Down

0 comments on commit 36b45a1

Please sign in to comment.