blk/Dockerfile.test

16 lines
233 B
Docker
Raw Permalink Normal View History

2024-08-11 01:51:18 +00:00
FROM golang:alpine AS builder
LABEL stage=gobuilder
ENV CGO_ENABLED 0
RUN apk update --no-cache && apk add --no-cache tzdata
WORKDIR /test
ADD go.mod .
ADD go.sum .
RUN go mod download
COPY . .
CMD ["go", "test", "-v", "./..."]