fix: add git
This commit is contained in:
parent
00c4725d2a
commit
a4d54bc847
@ -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"]
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user