Skip to content

Commit

Permalink
Fix poetry install (#81)
Browse files Browse the repository at this point in the history
* Dockerfile: replace deprecated '--no-dev' option with '--only main'

* pyproject.toml: disable package mode for whois.

This removes the warning on running the `poetry
install` command.

Signed-off-by: Eduard Kaverinskyi <[email protected]>

---------

Signed-off-by: Eduard Kaverinskyi <[email protected]>
  • Loading branch information
EduKav1813 authored Nov 1, 2024
1 parent 8172784 commit 38ba92b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY pyproject.toml /app/
COPY poetry.lock /app/

WORKDIR /app
RUN poetry install --no-dev
RUN poetry install --only main
COPY . .

RUN mkdir /data && chown nobody /data
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "whohacks"
version = "1.5.0"
description = ""
authors = ["Norbert Szulc <[email protected]>"]
package-mode = false

[tool.poetry.dependencies]
python = "^3.11"
Expand Down

0 comments on commit 38ba92b

Please sign in to comment.