This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
#syntax=docker/dockerfile:1.4.3
2
2
3
3
ARG ref=main
4
- FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5
4
5
+ FROM golang:1.19.1 AS build
6
+ WORKDIR /go/src/github.com/docker/cli
6
7
ARG name
7
8
ARG version
9
+ RUN git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/docker/cli .
10
+ ENV GO111MODULE=auto \
11
+ DISABLE_WARN_OUTSIDE_CONTAINER=1
12
+ RUN sed -i -E 's|^(\s+)(log.Printf\("WARN:)|\1//\2|' man/generate.go \
13
+ && sed -i -E 's|^(\s+)"log"||' man/generate.go \
14
+ && make manpages
15
+ RUN cp -r man/man1 /usr/local/share/man/ \
16
+ && cp -r man/man5 /usr/local/share/man/ \
17
+ && cp -r man/man8 /usr/local/share/man/
8
18
9
- RUN <<EOF
10
- curl --silent --location "https://github.com/nicholasdille/docker-cli-manpages/releases/download/v${version}/docker-cli-manpages.tar.gz" \
11
- | tar --extract --gzip --directory="${prefix}${target}" --no-same-owner
12
- EOF
19
+ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
20
+ COPY --from=build /usr/local/share/man/ ${prefix}${target}/share/man/
You can’t perform that action at this time.
0 commit comments