mirror of
https://gitea.intern.drachenfels.de/ruben/goget.git
synced 2026-02-08 12:48:01 +00:00
add Dockerfile and build script
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM docker.io/library/golang:1.17-alpine3.14 as build
|
||||
RUN apk --no-cache add make build-base git
|
||||
ARG GONOSUMDB
|
||||
ARG GOPROXY
|
||||
ARG GOBIN=/opt/bin
|
||||
ARG RELEASE="${RELEASE:-undefined}"
|
||||
WORKDIR /build
|
||||
ADD . .
|
||||
RUN STATIC=true make install
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /opt/bin/goget /
|
||||
Reference in New Issue
Block a user