Skip to content

Commit

Permalink
Merge pull request #257 from infosiftr/the-real-slim-shady
Browse files Browse the repository at this point in the history
Adjust "slim" variants to use "slim" Debian bases
  • Loading branch information
yosifkit authored Jan 8, 2019
2 parents 6a08386 + da4b249 commit 4d29dda
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 2.3/jessie/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:jessie-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion 2.3/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:stretch-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion 2.4/jessie/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:jessie-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion 2.4/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:stretch-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion 2.5/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:stretch-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion 2.6/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:stretch-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ for version in "${versions[@]}"; do
esac
template="Dockerfile-${template}.template"

if [ "$variant" = 'slim' ]; then
tag+='-slim'
fi

sed -r \
-e 's!%%VERSION%%!'"$version"'!g' \
-e 's!%%FULL_VERSION%%!'"$fullVersion"'!g' \
Expand Down

0 comments on commit 4d29dda

Please sign in to comment.