diff --git a/Dockerfile b/Dockerfile index c9fd894..fd417e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,16 @@ RUN apt-get update \ && python -m pip install --no-cache-dir -U \ pip +# Copy pyproject.toml and its dependencies +COPY pyproject.toml README.md /src/ +COPY src/great_project/__about__.py /src/src/great_project/__about__.py + +# Install Python dependencies +RUN pip install --no-cache-dir /src + # Copy code + associated artifacts COPY src /src/src -COPY pyproject.toml *.md /src/ +COPY *.md /src/ # Install + cleanup RUN pip install --no-cache-dir /src \