fix: add git

This commit is contained in:
Georg K 2022-03-03 20:51:30 +03:00
parent 00c4725d2a
commit a4d54bc847
2 changed files with 10 additions and 2 deletions

View File

@ -9,6 +9,6 @@ RUN go build -o gomodproxy cmd/gomodproxy/main.go && \
FROM golang:1.17.7-alpine3.15
WORKDIR /opt/app
RUN apk add --no-cache tzdata ca-certificates
RUN apk add --no-cache tzdata ca-certificates git
COPY --from=build /build/gomodproxy ./
CMD ["/opt/app/gomodproxy", "--addr", ":8080"]

View File

@ -12,10 +12,18 @@ services:
target: /cache
bind:
propagation: shared
- type: bind
source: ./keys
target: /keys
bind:
propagation: shared
command:
- /opt/app/gomodproxy
- --dir
- /cache
- --addr
- :8080
- -git
- gitlab.connectone.pro/:/keys/gitlab.connectone.pro
- -git
- gitlab.connectone.pro/:goproxy:glpat-_4p1YmfjcMsxdfXnayLm