mirror of
https://github.com/traefik/traefik-library-image.git
synced 2026-05-02 18:32:33 +00:00
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
FROM alpine:3.23
|
|
RUN apk --no-cache add ca-certificates tzdata
|
|
RUN set -ex; \
|
|
apkArch="$(apk --print-arch)"; \
|
|
case "$apkArch" in \
|
|
armhf) arch='armv6' ;; \
|
|
armv7) arch='armv7' ;; \
|
|
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.7.0-rc.1/traefik_v3.7.0-rc.1_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.7.0-rc.1" \
|
|
org.opencontainers.image.documentation="https://docs.traefik.io"
|