From 7be9d64843e7e72f3f31b7243c68c4426bea4b35 Mon Sep 17 00:00:00 2001 From: Nadzeya H Date: Tue, 7 Jan 2025 16:29:53 +0200 Subject: [PATCH] Fix poetry cannot install project because of the missing README file --- server/Dockerfile | 5 +---- server/pyproject.toml | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 432c0c15..6a77a722 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -4,16 +4,13 @@ WORKDIR /home/server EXPOSE 8080 ENV PYTHONPATH=/home/server -COPY poetry.lock . -COPY pyproject.toml . +COPY . . RUN pip3 install poetry && \ poetry config virtualenvs.create false && \ poetry install --no-interaction --no-ansi RUN apt update && apt install -y sqlite3 -COPY . . - ARG IMPORT_TOOL_PATH=./scripts/import_from_c3.py ARG DB_URL=sqlite:////home/server/hwapi.db ENV DB_URL=$DB_URL diff --git a/server/pyproject.toml b/server/pyproject.toml index c541d822..0c558f05 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -4,6 +4,7 @@ version = "0.1.0" description = "API server for working with hardware information from C3" authors = [] readme = "README.md" +package-mode = false [tool.poetry.dependencies] python = "^3.10"