Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: mismatched python3 and python3-dev versions in descendant images
Browse files Browse the repository at this point in the history
- make matching python3-dev version available in cache
- don't delete python3-dev post-build
- don't clear APK cache
  • Loading branch information
RaptDept committed Aug 23, 2018
1 parent eca526d commit 7b62e8e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dockerbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ echo "http://dl-cdn.alpinelinux.org/alpine/v3.7/main/" > /etc/apk/repositories
echo "http://dl-cdn.alpinelinux.org/alpine/v3.7/community/" >> /etc/apk/repositories
apk update

# Install Python, pip, setuptools and bind aliases
# Install Python, pip, setuptools, bind aliases and dev package
# Python from Alpine repo is smaller vs. official Docker image
apk add python3=3.6.3-r9
apk add python3=3.6.5-r0 python3-dev=3.6.5-r0
python3 -m ensurepip
pip3 install --upgrade pip setuptools

Expand All @@ -27,8 +27,7 @@ fi
# Build dependencies for Python packages
apk add \
--virtual=.shared-build-dependencies \
file binutils musl-dev \
python3-dev=3.6.3-r9
file binutils musl-dev

apk add \
--virtual=.scipy-build-dependencies \
Expand All @@ -55,4 +54,3 @@ apk del .scipy-build-dependencies
apk del .shared-build-dependencies

rm -rf /root/.cache/*
rm -rf /var/cache/apk/*

0 comments on commit 7b62e8e

Please sign in to comment.