using the go proxy nexus repo if the env vars are set
This commit is contained in:
parent
245dfd80c6
commit
e3418f4173
@ -1,4 +1,9 @@
|
||||
FROM alpine:3.20.2 as builder
|
||||
FROM wharf.wamblee.org/alpine:3.20.2 as builder
|
||||
ARG GOPROXY
|
||||
ARG GOSUMDB
|
||||
|
||||
ENV GOPROXY=$GOPROXY
|
||||
ENV GOSUMDB=$GOSUMDB
|
||||
|
||||
RUN apk update && apk add go curl
|
||||
RUN mkdir -p /opt/converge/bin
|
||||
|
10
compose.yaml
10
compose.yaml
@ -1,4 +1,8 @@
|
||||
|
||||
x-proxy-args: &proxy-args
|
||||
GOPROXY: ${GOPROXY}
|
||||
GOSUMDB: ${GOSUMDB}
|
||||
|
||||
services:
|
||||
|
||||
converge:
|
||||
@ -6,15 +10,21 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.prod
|
||||
args:
|
||||
<<: *proxy-args
|
||||
ports:
|
||||
- 8000:8000
|
||||
|
||||
|
||||
|
||||
converge-tester:
|
||||
image: $REGISTRY/converge-test:1.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.test
|
||||
args:
|
||||
<<: *proxy-args
|
||||
profiles:
|
||||
- build
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user