You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
504 B
22 lines
504 B
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 |