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
|
FROM golang:1.17.7-alpine3.15
|
||||||
WORKDIR /opt/app
|
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 ./
|
COPY --from=build /build/gomodproxy ./
|
||||||
CMD ["/opt/app/gomodproxy", "--addr", ":8080"]
|
CMD ["/opt/app/gomodproxy", "--addr", ":8080"]
|
@ -12,10 +12,18 @@ services:
|
|||||||
target: /cache
|
target: /cache
|
||||||
bind:
|
bind:
|
||||||
propagation: shared
|
propagation: shared
|
||||||
|
- type: bind
|
||||||
|
source: ./keys
|
||||||
|
target: /keys
|
||||||
|
bind:
|
||||||
|
propagation: shared
|
||||||
command:
|
command:
|
||||||
- /opt/app/gomodproxy
|
- /opt/app/gomodproxy
|
||||||
- --dir
|
- --dir
|
||||||
- /cache
|
- /cache
|
||||||
- --addr
|
- --addr
|
||||||
- :8080
|
- :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