Skip to content

Commit

Permalink
Merge pull request #29 from openzim/split_docker_build
Browse files Browse the repository at this point in the history
Split Docker build for efficiency
  • Loading branch information
benoit74 authored Sep 19, 2023
2 parents c02d44f + 633d2e0 commit b6080c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit b6080c1

Please sign in to comment.