File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM golang:1.16-alpine as build
2
+ WORKDIR /build/
3
+ ADD . .
4
+ RUN go mod download
5
+ RUN go build -o /tmp/super-go-mod-proxy github.com/willena/super-go-mod-proxy/cmd
6
+
7
+
8
+ FROM alpine
9
+ WORKDIR /app/
10
+ COPY --from=build /tmp/super-go-mod-proxy .
11
+ RUN chmod +x ./super-go-mod-proxy
12
+
13
+ ENTRYPOINT ["/app/super-go-mod-proxy" ]
14
+
Original file line number Diff line number Diff line change 1
1
# Super go mod proxy
2
2
3
+ ![ https://img.shields.io/docker/v/gillena/super-go-mod-proxy?color=blue&label=Docker%20Hub ] ( https://img.shields.io/docker/v/gillena/super-go-mod-proxy?color=blue&label=Docker%20Hub )
4
+
3
5
Yet another go modules proxy
4
6
5
7
# About
@@ -70,4 +72,4 @@ This might be usefull in private environnement where the domain used is not wher
70
72
hosted. For example, module name would be something like ` myCompany.com/myGroup/module ` and the repository is located at
71
73
` http://git.private.local/myGroup/module ` . This is then transparent for the go client.
72
74
73
-
75
+
You can’t perform that action at this time.
0 commit comments