diff --git a/.drone.yml b/.drone.yml index 66e2468..fb5cd0c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,4 +1,3 @@ kind: template load: plugin.jsonnet -namespace: zeus name: golang_ci1.jsonnet \ No newline at end of file diff --git a/app/api/example_api/Dockerfile b/app/api/example_api/Dockerfile index d6e9d66..b159d9e 100644 --- a/app/api/example_api/Dockerfile +++ b/app/api/example_api/Dockerfile @@ -8,7 +8,7 @@ RUN go mod download WORKDIR /go/src ADD . . 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 WORKDIR /go/src @@ -19,6 +19,6 @@ COPY --from=builder /go/src/api_example_api ./ ENV TZ=Asia/Shanghai ENV env=pro ENV endpoints=http://etcd-server:2379 -RUN chmod +x ./main +RUN chmod +x ./api_example_api EXPOSE 8080 -CMD ["./main"] \ No newline at end of file +CMD ["./api_example_api"] \ No newline at end of file