Skip to content

Commit

Permalink
add debian-stable
Browse files Browse the repository at this point in the history
Based on:
debuerreotype/docker-debian-artifacts#205 (comment)
I have based the `*debian-stable` not on an alias but on a different debian channel.

Fixes docker-library#485
  • Loading branch information
Jorropo committed Aug 18, 2023
1 parent d1ff31b commit 5820346
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 0 deletions.
128 changes: 128 additions & 0 deletions 1.20/debian-stable/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 130 additions & 0 deletions 1.21/debian-stable/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@
def always_build_from_source:
# https://github.com/golang/go/issues/57007! (as of Go 1.21, the upstream release binaries are fully static and thus appropriate for Alpine)
is_alpine and ([ "1.20" ] | index(env.version | rtrimstr("-rc")))
;
def is_debian_but_not_one_to_one:
env.variant | startswith("debian")
;
def get_debian_channel:
env.variant | ltrimstr("debian-")
-}}
{{ if is_alpine then ( -}}
FROM alpine:{{ alpine_version }}

RUN apk add --no-cache ca-certificates
{{ ) else ( -}}
{{ if is_debian_but_not_one_to_one then ( -}}
FROM buildpack-deps:{{ get_debian_channel }}-scm
{{ ) else ( -}}
FROM buildpack-deps:{{ env.variant }}-scm
{{ ) end -}}

# install cgo-related dependencies
RUN set -eux; \
Expand Down
2 changes: 2 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
"variants": [
"bookworm",
"bullseye",
"debian-stable",
"alpine3.18",
"alpine3.17",
"windows/windowsservercore-ltsc2022",
Expand Down Expand Up @@ -554,6 +555,7 @@
"variants": [
"bookworm",
"bullseye",
"debian-stable",
"alpine3.18",
"alpine3.17",
"windows/windowsservercore-ltsc2022",
Expand Down
1 change: 1 addition & 0 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ for version in "${versions[@]}"; do
variants: [
"bookworm",
"bullseye",
"debian-stable",
(
"3.18",
"3.17"
Expand Down

0 comments on commit 5820346

Please sign in to comment.