fix: add nosumdb

This commit is contained in:
Georg K 2022-03-03 22:16:56 +03:00
parent 3cd63129a6
commit 513e50f7f5
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ RUN go build -o gomodproxy cmd/gomodproxy/main.go && \
chmod a+x gomodproxy chmod a+x gomodproxy
FROM golang:1.17.7-alpine3.15 FROM golang:1.17.7-alpine3.15
ENV GONOSUMDB=gitlab.connectone.pro/*
WORKDIR /opt/app WORKDIR /opt/app
RUN apk add --no-cache tzdata ca-certificates git openssh RUN apk add --no-cache tzdata ca-certificates git openssh
COPY --from=build /build/gomodproxy ./ COPY --from=build /build/gomodproxy ./

View File

@ -14,7 +14,7 @@ services:
propagation: shared propagation: shared
- type: bind - type: bind
source: ./keys source: ./keys
target: /keys target: /root/.ssh
bind: bind:
propagation: shared propagation: shared
command: command:
@ -24,6 +24,6 @@ services:
- --addr - --addr
- :8080 - :8080
- -git - -git
- gitlab.connectone.pro/:/keys/gitlab.connectone.pro - gitlab.connectone.pro/:/root/.ssh/id_rsa
- -git - -git
- gitlab.connectone.pro/:goproxy:glpat-_4p1YmfjcMsxdfXnayLm - gitlab.connectone.pro/:goproxy:glpat-_4p1YmfjcMsxdfXnayLm