revert back

This commit is contained in:
kandrusyak
2023-08-08 22:25:22 +03:00
parent f1a790fe3c
commit fe1e913348

View File

@@ -6,18 +6,20 @@ WORKDIR /
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go get -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv
RUN CGO_ENABLED=0 go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv
RUN CGO_ENABLED=0 go build -gcflags "all=-N -l" -o ./app
#RUN CGO_ENABLED=0 go get -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv
#RUN CGO_ENABLED=0 go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv
#RUN CGO_ENABLED=0 go build -gcflags "all=-N -l" -o ./app
RUN CGO_ENABLED=0 go build -o ./app
FROM alpine:edge
WORKDIR /
COPY . .
COPY --from=build /go/bin/dlv dlv
#COPY . .
#COPY --from=build /go/bin/dlv dlv
COPY --from=build /app app
EXPOSE 8080
ENTRYPOINT [ "/dlv" , "--listen=:40000", "--headless=true", "--api-version=2", "--accept-multiclient", "exec", "/app"]
#ENTRYPOINT [ "/dlv" , "--listen=:40000", "--headless=true", "--api-version=2", "--accept-multiclient", "exec", "/app"]
ENTRYPOINT [ "/app"]