Skip to content

Commit d4838c4

Browse files
committed
Added docker file
1 parent 1beb482 commit d4838c4

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Super go mod proxy
22

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+
35
Yet another go modules proxy
46

57
# About
@@ -70,4 +72,4 @@ This might be usefull in private environnement where the domain used is not wher
7072
hosted. For example, module name would be something like `myCompany.com/myGroup/module` and the repository is located at
7173
`http://git.private.local/myGroup/module`. This is then transparent for the go client.
7274

73-
75+

0 commit comments

Comments
 (0)