Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Feb 26, 2025
1 parent 93032da commit d7c32ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build application
run: |
GO111MODULE=on go build -mod=readonly ./cmd/provider-services
go mod vendor
GO111MODULE=on go build -gcflags="all=-N -l" -mod=readonly ./cmd/provider-services
- name: Push Docker image
uses: docker/build-push-action@v5
with:
Expand Down
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# First stage: build image to install delve
FROM golang:1.21 AS build

# Install delve
RUN go install github.com/go-delve/delve/cmd/dlv@latest

# Second stage: final image
FROM ubuntu:noble
LABEL "org.opencontainers.image.source"="https://github.com/akash-network/provider"

COPY provider-services /usr/bin/
# Copy delve from the build stage
COPY --from=build /go/bin/dlv /usr/bin/

ENV DEBIAN_FRONTEND=noninteractive

Expand All @@ -26,5 +35,8 @@ EXPOSE 8443
# default for inventory operator API
EXPOSE 8080

# Add delve debug port
EXPOSE 2345

ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["provider-services", "--help"]
CMD ["provider-services", "--help"]

0 comments on commit d7c32ff

Please sign in to comment.