remove go modules Dockerfile.dev,add Dockerfile.dev to docker folder
continuous-integration/drone/push Build is failing Details

master
wanggang 4 years ago
parent f972800727
commit b9f23abf96

@ -14,9 +14,10 @@ FROM debian:buster-20210511 as Final
WORKDIR /app
COPY --from=build /go/bin/dlv /
COPY --from=build /example .
COPY Shell .
COPY Config ./Config
#COPY Xml ./Xml
COPY Sql ./Sql
COPY *Config ./Config
COPY *Xml ./Xml
COPY *Sql ./Sql
COPY *docs ./docs
COPY *Shell ./
CMD /dlv --headless --listen=:2345 --api-version=2 --accept-multiclient exec /app/example

@ -7,7 +7,7 @@ services:
- SYS_PTRACE
build:
context: ../dsBaseRpc
dockerfile: Dockerfile.dev
dockerfile: ../docker/Dockerfile.dev
args:
- MODULE=dsBaseRpc
ports:
@ -22,7 +22,7 @@ services:
- seccomp:unconfined
build:
context: ../dsBaseWeb
dockerfile: Dockerfile.dev
dockerfile: ../docker/Dockerfile.dev
args:
- MODULE=dsBaseWeb
ports:
@ -37,7 +37,7 @@ services:
- seccomp:unconfined
build:
context: ../dsBigData
dockerfile: Dockerfile.dev
dockerfile: ../docker/Dockerfile.dev
args:
- MODULE=dsBigData
ports:
@ -52,7 +52,7 @@ services:
- seccomp:unconfined
build:
context: ../dsSso
dockerfile: Dockerfile.dev
dockerfile: ../docker/Dockerfile.dev
args:
- MODULE=dsSso
ports:
@ -67,7 +67,7 @@ services:
# - seccomp:unconfined
# build:
# context: ../dsSupport
# dockerfile: Dockerfile.dev
# dockerfile: ../docker/Dockerfile.dev
# args:
# - MODULE=dsSupport
# ports:

@ -1,22 +0,0 @@
FROM golang:1.16.5-buster as build
RUN go env -w GOPROXY=https://goproxy.cn
RUN go get github.com/go-delve/delve/cmd/dlv
ARG MODULE
ADD . /go/src/$MODULE
WORKDIR /go/src/$MODULE
RUN go build -gcflags "all=-N -l" -o /example main.go
FROM debian:buster-20210511 as Final
WORKDIR /app
COPY --from=build /go/bin/dlv /
COPY --from=build /example .
COPY Shell .
COPY Config ./Config
COPY docs ./docs
#COPY Xml ./Xml
CMD /dlv --headless --listen=:2345 --api-version=2 --accept-multiclient exec /app/example

@ -1,22 +0,0 @@
FROM golang:1.16.5-buster as build
RUN go env -w GOPROXY=https://goproxy.cn
RUN go get github.com/go-delve/delve/cmd/dlv
ARG MODULE
ADD . /go/src/$MODULE
WORKDIR /go/src/$MODULE
RUN go build -gcflags "all=-N -l" -o /example main.go
FROM debian:buster-20210511 as Final
WORKDIR /app
COPY --from=build /go/bin/dlv /
COPY --from=build /example .
COPY Shell .
COPY Config ./Config
#COPY Xml ./Xml
#COPY Sql ./Sql
CMD /dlv --headless --listen=:2345 --api-version=2 --accept-multiclient exec /app/example

@ -1,23 +0,0 @@
FROM golang:1.16.5-buster as build
RUN go env -w GOPROXY=https://goproxy.cn
RUN go get github.com/go-delve/delve/cmd/dlv
ARG MODULE
ADD . /go/src/$MODULE
WORKDIR /go/src/$MODULE
RUN go build -gcflags "all=-N -l" -o /example main.go
FROM debian:buster-20210511 as Final
WORKDIR /app
COPY --from=build /go/bin/dlv /
COPY --from=build /example .
COPY Shell .
COPY Config ./Config
COPY docs ./docs
#COPY Xml ./Xml
#COPY Sql ./Sql
CMD /dlv --headless --listen=:2345 --api-version=2 --accept-multiclient exec /app/example

@ -1,23 +0,0 @@
FROM golang:1.16.5-buster as build
RUN go env -w GOPROXY=https://goproxy.cn
RUN go get github.com/go-delve/delve/cmd/dlv
ARG MODULE
ADD . /go/src/$MODULE
WORKDIR /go/src/$MODULE
RUN go build -gcflags "all=-N -l" -o /example main.go
FROM debian:buster-20210511 as Final
WORKDIR /app
COPY --from=build /go/bin/dlv /
COPY --from=build /example .
COPY Shell .
COPY Config ./Config
COPY docs ./docs
#COPY Xml ./Xml
#COPY Sql ./Sql
CMD /dlv --headless --listen=:2345 --api-version=2 --accept-multiclient exec /app/example
Loading…
Cancel
Save