File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
3
ARG GO_VERSION=1.24.4
4
- ARG ALPINE_VERSION=3.21
5
4
ARG DOCS_FORMATS="md,yaml"
6
5
7
6
FROM --platform=${BUILDPLATFORM} golangci/golangci-lint:v2.1.6-alpine AS lint-base
8
7
9
8
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine AS base
10
- RUN apk add --no-cache git
9
+ RUN apk add --no-cache git rsync
11
10
WORKDIR /app
12
11
13
12
FROM base AS lint
@@ -132,18 +131,13 @@ RUN chmod +x /run.sh
132
131
ENV PORT=8080
133
132
ENTRYPOINT ["/run.sh" ]
134
133
135
- FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS alpine
136
- RUN apk add --no-cache rsync git
137
- ENV CGO_ENABLED=0
138
- WORKDIR /src
139
-
140
- FROM alpine AS docs-gen
134
+ FROM base AS docs-gen
141
135
WORKDIR /src
142
136
RUN --mount=target=. \
143
137
--mount=target=/root/.cache,type=cache \
144
138
go build -mod=vendor -o /out/docsgen ./docs/generator/generate.go
145
139
146
- FROM alpine AS docs-build
140
+ FROM base AS docs-build
147
141
COPY --from=docs-gen /out/docsgen /usr/bin
148
142
ENV DOCKER_CLI_PLUGIN_ORIGINAL_CLI_COMMAND="mcp"
149
143
ARG DOCS_FORMATS
You can’t perform that action at this time.
0 commit comments