mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-18 14:39:49 +02:00
README update for sonarcloud badges, simplify some test code, fixed some sonarlint issues
This commit is contained in:
@@ -2,13 +2,12 @@ FROM golang:1.23.1-alpine AS builder
|
||||
COPY src /src
|
||||
ENV GOCACHE=/root/.cache/go-build
|
||||
WORKDIR /src
|
||||
RUN --mount=type=cache,target="/go/pkg/mod" \
|
||||
go mod download
|
||||
RUN --mount=type=cache,target="/go/pkg/mod" \
|
||||
--mount=type=cache,target="/root/.cache/go-build" \
|
||||
go mod download
|
||||
CGO_ENABLED=0 GOOS=linux go build -pgo=auto -o go-proxy github.com/yusing/go-proxy
|
||||
|
||||
FROM alpine:latest
|
||||
FROM alpine:3.20
|
||||
|
||||
LABEL maintainer="yusing@6uo.me"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user