13 lines
285 B
Docker
13 lines
285 B
Docker
ARG GO_VERSION=1.21.1
|
|
|
|
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine AS base
|
|
WORKDIR /src
|
|
# RUN --mount=type=bind,target=go.mod \
|
|
# --mount=type=bind,target=go.sum \
|
|
# go mod download
|
|
|
|
FROM base as tests
|
|
WORKDIR /src
|
|
RUN --mount=type=bind,target=. \
|
|
go test ./...
|