diff --git a/.dockerignore b/.dockerignore index 110e416..ac442ff 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,2 @@ .git/ -__pycache__/ \ No newline at end of file +__pycache__/ diff --git a/Dockerfile b/Dockerfile index 4315c14..4d96306 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,15 @@ WORKDIR /app RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* -RUN curl -sSL https://install.python-poetry.org | python3 - +RUN curl -sSL https://install.python-poetry.org | python3 - # Ensure Poetry is available in PATH ENV PATH="/root/.local/bin:$PATH" COPY pyproject.toml poetry.lock ./ -RUN poetry self add "poetry-plugin-export" && \ - poetry export -f requirements.txt --without-hashes -o requirements.txt && \ +RUN poetry self add "poetry-plugin-export" && + poetry export -f requirements.txt --without-hashes -o requirements.txt && pip install --no-cache-dir -r requirements.txt COPY . .