update
This commit is contained in:
parent
555069ddfe
commit
cae415ccd8
@ -1,4 +1,3 @@
|
|||||||
kind: template
|
kind: template
|
||||||
load: plugin.jsonnet
|
load: plugin.jsonnet
|
||||||
namespace: zeus
|
|
||||||
name: golang_ci1.jsonnet
|
name: golang_ci1.jsonnet
|
@ -8,7 +8,7 @@ RUN go mod download
|
|||||||
WORKDIR /go/src
|
WORKDIR /go/src
|
||||||
ADD . .
|
ADD . .
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o api_example_api
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o api_example_api ./app/api/example_api
|
||||||
|
|
||||||
FROM alpine as brahma-api
|
FROM alpine as brahma-api
|
||||||
WORKDIR /go/src
|
WORKDIR /go/src
|
||||||
@ -19,6 +19,6 @@ COPY --from=builder /go/src/api_example_api ./
|
|||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
ENV env=pro
|
ENV env=pro
|
||||||
ENV endpoints=http://etcd-server:2379
|
ENV endpoints=http://etcd-server:2379
|
||||||
RUN chmod +x ./main
|
RUN chmod +x ./api_example_api
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["./main"]
|
CMD ["./api_example_api"]
|
Loading…
x
Reference in New Issue
Block a user