mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-16 20:50:25 +00:00
* ci: enables permalink for download of latest gh release assets
removes tag names to unlock latest-permalink
* ci: fix inconsistent gh release asset naming
changes macos and windows release assets to follow linux naming scheme: lychee-{cpu}-{platform}.{ext}
* ci: fix inconsistent asset naming of nightly builds
* ci: simplifies Dockerfiles by using latest permalink
* ci: adds comment to keep dependent files in sync
37 lines
1.3 KiB
Docker
37 lines
1.3 KiB
Docker
FROM debian:bullseye-slim as builder
|
|
WORKDIR /builder
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
--no-install-recommends \
|
|
ca-certificates \
|
|
jq \
|
|
wget \
|
|
&& case $(dpkg --print-architecture) in \
|
|
"amd64") \
|
|
wget -q -O - https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz | tar -xz lychee \
|
|
;; \
|
|
"arm64") \
|
|
wget -q -O - https://github.com/lycheeverse/lychee/releases/latest/download/lychee-aarch64-unknown-linux-gnu.tar.gz | tar -xz lychee \
|
|
;; \
|
|
esac \
|
|
&& chmod +x lychee
|
|
|
|
FROM debian:bullseye-slim
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
--no-install-recommends \
|
|
ca-certificates \
|
|
tzdata \
|
|
&& rm -rf /var/cache/debconf/* \
|
|
# Clean and keep the image small. This should not
|
|
# be necessary as the debian-slim images have an
|
|
# auto clean mechanism but we may rely on other
|
|
# images in the future (see:
|
|
# https://github.com/debuerreotype/debuerreotype/blob/master/scripts/debuerreotype-minimizing-config).
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=builder /builder/lychee /usr/local/bin/lychee
|
|
ENTRYPOINT [ "/usr/local/bin/lychee" ]
|