File tree 7 files changed +121
-1
lines changed
7 files changed +121
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3.21
2
+ RUN apk --no-cache add ca-certificates tzdata
3
+ RUN set -ex; \
4
+ apkArch="$(apk --print-arch)" ; \
5
+ case "$apkArch" in \
6
+ armhf) arch='armv6' ;; \
7
+ aarch64) arch='arm64' ;; \
8
+ x86_64) arch='amd64' ;; \
9
+ riscv64) arch='riscv64' ;; \
10
+ s390x) arch='s390x' ;; \
11
+ ppc64le) arch='ppc64le' ;; \
12
+ *) echo >&2 "error: unsupported architecture: $apkArch" ; exit 1 ;; \
13
+ esac; \
14
+ wget --quiet -O /tmp/traefik.tar.gz "https://github.com/traefik/traefik/releases/download/v3.4.0-rc1/traefik_v3.4.0-rc1_linux_$arch.tar.gz" ; \
15
+ tar xzvf /tmp/traefik.tar.gz -C /usr/local/bin traefik; \
16
+ rm -f /tmp/traefik.tar.gz; \
17
+ chmod +x /usr/local/bin/traefik
18
+ COPY entrypoint.sh /
19
+ EXPOSE 80
20
+ ENTRYPOINT ["/entrypoint.sh" ]
21
+ CMD ["traefik" ]
22
+
23
+ # Metadata
24
+ LABEL org.opencontainers.image.vendor="Traefik Labs" \
25
+ org.opencontainers.image.url="https://traefik.io" \
26
+ org.opencontainers.image.source="https://github.com/traefik/traefik" \
27
+ org.opencontainers.image.title="Traefik" \
28
+ org.opencontainers.image.description="A modern reverse-proxy" \
29
+ org.opencontainers.image.version="v3.4.0-rc1" \
30
+ org.opencontainers.image.documentation="https://docs.traefik.io"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ # first arg is `-f` or `--some-option`
5
+ if [ " ${1# -} " != " $1 " ]; then
6
+ set -- traefik " $@ "
7
+ fi
8
+
9
+ # if our command is a valid Traefik subcommand, let's invoke it through Traefik instead
10
+ # (this allows for "docker run traefik version", etc)
11
+ if traefik " $1 " --help > /dev/null 2>&1
12
+ then
13
+ set -- traefik " $@ "
14
+ else
15
+ echo " = '$1 ' is not a Traefik command: assuming shell execution." 1>&2
16
+ fi
17
+
18
+ exec " $@ "
Original file line number Diff line number Diff line change
1
+ FROM scratch
2
+ COPY --from=traefik:v3.4.0-rc1-alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3
+ COPY --from=traefik:v3.4.0-rc1-alpine /usr/share/zoneinfo /usr/share/
4
+ COPY --from=traefik:v3.4.0-rc1-alpine /usr/local/bin/traefik /
5
+
6
+ EXPOSE 80
7
+ VOLUME ["/tmp" ]
8
+ ENTRYPOINT ["/traefik" ]
9
+
10
+ # Metadata
11
+ LABEL org.opencontainers.image.vendor="Traefik Labs" \
12
+ org.opencontainers.image.url="https://traefik.io" \
13
+ org.opencontainers.image.source="https://github.com/traefik/traefik" \
14
+ org.opencontainers.image.title="Traefik" \
15
+ org.opencontainers.image.description="A modern reverse-proxy" \
16
+ org.opencontainers.image.version="v3.4.0-rc1" \
17
+ org.opencontainers.image.documentation="https://docs.traefik.io"
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/windows/servercore:1809
2
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
3
+
4
+ RUN Invoke-WebRequest \
5
+ -Uri "https://github.com/traefik/traefik/releases/download/v3.4.0-rc1/traefik_v3.4.0-rc1_windows_amd64.zip" \
6
+ -OutFile "/traefik.zip" ; \
7
+ Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \
8
+ Remove-Item "/traefik.zip" -Force
9
+
10
+ EXPOSE 80
11
+ ENTRYPOINT [ "/traefik" ]
12
+
13
+ # Metadata
14
+ LABEL org.opencontainers.image.vendor="Traefik Labs" \
15
+ org.opencontainers.image.url="https://traefik.io" \
16
+ org.opencontainers.image.source="https://github.com/traefik/traefik" \
17
+ org.opencontainers.image.title="Traefik" \
18
+ org.opencontainers.image.description="A modern reverse-proxy" \
19
+ org.opencontainers.image.version="v3.4.0-rc1" \
20
+ org.opencontainers.image.documentation="https://docs.traefik.io"
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/windows/nanoserver:ltsc2022
2
+
3
+ COPY --from=traefik:v3.4.0-rc1-windowsservercore-ltsc2022 /traefik.exe /
4
+
5
+ EXPOSE 80
6
+ ENTRYPOINT [ "/traefik" ]
7
+
8
+ # Metadata
9
+ LABEL org.opencontainers.image.vendor="Traefik Labs" \
10
+ org.opencontainers.image.url="https://traefik.io" \
11
+ org.opencontainers.image.source="https://github.com/traefik/traefik" \
12
+ org.opencontainers.image.title="Traefik" \
13
+ org.opencontainers.image.description="A modern reverse-proxy" \
14
+ org.opencontainers.image.version="v3.4.0-rc1" \
15
+ org.opencontainers.image.documentation="https://docs.traefik.io"
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/windows/servercore:ltsc2022
2
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
3
+
4
+ RUN Invoke-WebRequest \
5
+ -Uri "https://github.com/traefik/traefik/releases/download/v3.4.0-rc1/traefik_v3.4.0-rc1_windows_amd64.zip" \
6
+ -OutFile "/traefik.zip" ; \
7
+ Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \
8
+ Remove-Item "/traefik.zip" -Force
9
+
10
+ EXPOSE 80
11
+ ENTRYPOINT [ "/traefik" ]
12
+
13
+ # Metadata
14
+ LABEL org.opencontainers.image.vendor="Traefik Labs" \
15
+ org.opencontainers.image.url="https://traefik.io" \
16
+ org.opencontainers.image.source="https://github.com/traefik/traefik" \
17
+ org.opencontainers.image.title="Traefik" \
18
+ org.opencontainers.image.description="A modern reverse-proxy" \
19
+ org.opencontainers.image.version="v3.4.0-rc1" \
20
+ org.opencontainers.image.documentation="https://docs.traefik.io"
Original file line number Diff line number Diff line change 1
- v3.3.5
1
+ v3.4.0-rc1
You can’t perform that action at this time.
0 commit comments