mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-16 08:27:06 +08:00
@ -1,6 +1,8 @@
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
FROM golang:1.16-alpine AS docsgen
|
||||
ARG GO_VERSION=1.17.0
|
||||
|
||||
FROM golang:${GO_VERSION}-alpine AS docsgen
|
||||
WORKDIR /src
|
||||
RUN --mount=target=. \
|
||||
--mount=target=/root/.cache,type=cache \
|
||||
|
@ -1,10 +1,12 @@
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
FROM golang:1.16-alpine
|
||||
ARG GO_VERSION=1.17.0
|
||||
|
||||
FROM golang:${GO_VERSION}-alpine
|
||||
RUN apk add --no-cache gcc musl-dev yamllint
|
||||
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.36.0
|
||||
WORKDIR /go/src/github.com/docker/buildx
|
||||
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
|
||||
golangci-lint run
|
||||
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
|
||||
yamllint -c .yamllint.yml --strict .
|
||||
yamllint -c .yamllint.yml --strict .
|
||||
|
@ -1,6 +1,8 @@
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
FROM golang:1.16-alpine AS vendored
|
||||
ARG GO_VERSION=1.17.0
|
||||
|
||||
FROM golang:${GO_VERSION}-alpine AS vendored
|
||||
RUN apk add --no-cache git rsync
|
||||
WORKDIR /src
|
||||
RUN --mount=target=/context \
|
||||
|
Reference in New Issue
Block a user