-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM alpine:3.21 | ||
RUN apk --no-cache add ca-certificates tzdata | ||
RUN set -ex; \ | ||
apkArch="$(apk --print-arch)"; \ | ||
case "$apkArch" in \ | ||
armhf) arch='armv6' ;; \ | ||
aarch64) arch='arm64' ;; \ | ||
x86_64) arch='amd64' ;; \ | ||
riscv64) arch='riscv64' ;; \ | ||
s390x) arch='s390x' ;; \ | ||
ppc64le) arch='ppc64le' ;; \ | ||
*) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ | ||
esac; \ | ||
wget --quiet -O /tmp/traefik.tar.gz "https://github.com/traefik/traefik/releases/download/v3.3.0-rc1/traefik_v3.3.0-rc1_linux_$arch.tar.gz"; \ | ||
tar xzvf /tmp/traefik.tar.gz -C /usr/local/bin traefik; \ | ||
rm -f /tmp/traefik.tar.gz; \ | ||
chmod +x /usr/local/bin/traefik | ||
COPY entrypoint.sh / | ||
EXPOSE 80 | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["traefik"] | ||
|
||
# Metadata | ||
LABEL org.opencontainers.image.vendor="Traefik Labs" \ | ||
org.opencontainers.image.url="https://traefik.io" \ | ||
org.opencontainers.image.source="https://github.com/traefik/traefik" \ | ||
org.opencontainers.image.title="Traefik" \ | ||
org.opencontainers.image.description="A modern reverse-proxy" \ | ||
org.opencontainers.image.version="v3.3.0-rc1" \ | ||
org.opencontainers.image.documentation="https://docs.traefik.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# first arg is `-f` or `--some-option` | ||
if [ "${1#-}" != "$1" ]; then | ||
set -- traefik "$@" | ||
fi | ||
|
||
# if our command is a valid Traefik subcommand, let's invoke it through Traefik instead | ||
# (this allows for "docker run traefik version", etc) | ||
if traefik "$1" --help >/dev/null 2>&1 | ||
then | ||
set -- traefik "$@" | ||
else | ||
echo "= '$1' is not a Traefik command: assuming shell execution." 1>&2 | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM scratch | ||
COPY --from=traefik:v3.3.0-rc1-alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=traefik:v3.3.0-rc1-alpine /usr/share/zoneinfo /usr/share/ | ||
COPY --from=traefik:v3.3.0-rc1-alpine /usr/local/bin/traefik / | ||
|
||
EXPOSE 80 | ||
VOLUME ["/tmp"] | ||
ENTRYPOINT ["/traefik"] | ||
|
||
# Metadata | ||
LABEL org.opencontainers.image.vendor="Traefik Labs" \ | ||
org.opencontainers.image.url="https://traefik.io" \ | ||
org.opencontainers.image.source="https://github.com/traefik/traefik" \ | ||
org.opencontainers.image.title="Traefik" \ | ||
org.opencontainers.image.description="A modern reverse-proxy" \ | ||
org.opencontainers.image.version="v3.3.0-rc1" \ | ||
org.opencontainers.image.documentation="https://docs.traefik.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mcr.microsoft.com/windows/servercore:1809 | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
RUN Invoke-WebRequest \ | ||
-Uri "https://github.com/traefik/traefik/releases/download/v3.3.0-rc1/traefik_v3.3.0-rc1_windows_amd64.zip" \ | ||
-OutFile "/traefik.zip"; \ | ||
Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \ | ||
Remove-Item "/traefik.zip" -Force | ||
|
||
EXPOSE 80 | ||
ENTRYPOINT [ "/traefik" ] | ||
|
||
# Metadata | ||
LABEL org.opencontainers.image.vendor="Traefik Labs" \ | ||
org.opencontainers.image.url="https://traefik.io" \ | ||
org.opencontainers.image.source="https://github.com/traefik/traefik" \ | ||
org.opencontainers.image.title="Traefik" \ | ||
org.opencontainers.image.description="A modern reverse-proxy" \ | ||
org.opencontainers.image.version="v3.3.0-rc1" \ | ||
org.opencontainers.image.documentation="https://docs.traefik.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 | ||
|
||
COPY --from=traefik:v3.3.0-rc1-windowsservercore-ltsc2022 /traefik.exe / | ||
|
||
EXPOSE 80 | ||
ENTRYPOINT [ "/traefik" ] | ||
|
||
# Metadata | ||
LABEL org.opencontainers.image.vendor="Traefik Labs" \ | ||
org.opencontainers.image.url="https://traefik.io" \ | ||
org.opencontainers.image.source="https://github.com/traefik/traefik" \ | ||
org.opencontainers.image.title="Traefik" \ | ||
org.opencontainers.image.description="A modern reverse-proxy" \ | ||
org.opencontainers.image.version="v3.3.0-rc1" \ | ||
org.opencontainers.image.documentation="https://docs.traefik.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2022 | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
RUN Invoke-WebRequest \ | ||
-Uri "https://github.com/traefik/traefik/releases/download/v3.3.0-rc1/traefik_v3.3.0-rc1_windows_amd64.zip" \ | ||
-OutFile "/traefik.zip"; \ | ||
Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \ | ||
Remove-Item "/traefik.zip" -Force | ||
|
||
EXPOSE 80 | ||
ENTRYPOINT [ "/traefik" ] | ||
|
||
# Metadata | ||
LABEL org.opencontainers.image.vendor="Traefik Labs" \ | ||
org.opencontainers.image.url="https://traefik.io" \ | ||
org.opencontainers.image.source="https://github.com/traefik/traefik" \ | ||
org.opencontainers.image.title="Traefik" \ | ||
org.opencontainers.image.description="A modern reverse-proxy" \ | ||
org.opencontainers.image.version="v3.3.0-rc1" \ | ||
org.opencontainers.image.documentation="https://docs.traefik.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v3.2.3 | ||
v3.3.0-rc1 |