Skip to content

Commit

Permalink
Split Python dependencies installation in Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Oct 2, 2023
1 parent 3c3aeb1 commit 6f1a53a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Dockerfile: split installation of Python dependencies for more efficiency

## [1.1.0] - 2023-07-25

### Added
Expand Down
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,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 get_js_deps.sh hatch_build.py /src/
COPY src/kolibri2zim/__about__.py /src/src/kolibri2zim/__about__.py

# Install Python dependencies
RUN pip install --no-cache-dir /src

# Copy code + associated artifacts
COPY src /src/src
COPY pyproject.toml *.md get_js_deps.sh MANIFEST.in LICENSE *.py /src/
COPY *.md LICENSE *.py /src/

# Install + cleanup
RUN pip install --no-cache-dir /src \
Expand Down

0 comments on commit 6f1a53a

Please sign in to comment.