Skip to content

Commit 28490a6

Browse files
committed
Update slim variants to use slim Debian variants
1 parent 3f12f51 commit 28490a6

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

2.7/jessie/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:jessie
1+
FROM debian:jessie-slim
22

33
# ensure local python is preferred over distribution python
44
ENV PATH /usr/local/bin:$PATH

3.4/jessie/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
66

7-
FROM debian:jessie
7+
FROM debian:jessie-slim
88

99
# ensure local python is preferred over distribution python
1010
ENV PATH /usr/local/bin:$PATH

3.5/jessie/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
66

7-
FROM debian:jessie
7+
FROM debian:jessie-slim
88

99
# ensure local python is preferred over distribution python
1010
ENV PATH /usr/local/bin:$PATH

3.6/jessie/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
66

7-
FROM debian:jessie
7+
FROM debian:jessie-slim
88

99
# ensure local python is preferred over distribution python
1010
ENV PATH /usr/local/bin:$PATH

3.7-rc/stretch/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
66

7-
FROM debian:stretch
7+
FROM debian:stretch-slim
88

99
# ensure local python is preferred over distribution python
1010
ENV PATH /usr/local/bin:$PATH

update.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ for version in "${versions[@]}"; do
111111
alpine*) template='alpine'; tag="${variant#alpine}" ;;
112112
*) template='debian'; tag="$variant" ;;
113113
esac
114+
if [ "$variant" = 'slim' ]; then
115+
# use "debian:*-slim" variants for "python:*-slim" variants
116+
tag+='-slim'
117+
fi
114118
template="Dockerfile-${template}.template"
115119

116120
if [[ "$version" == 2.* ]]; then

0 commit comments

Comments
 (0)