Skip to content

A self-hosted dashboard that puts all your feeds in one place

Added debugging Dockerfile :sparkles:

Andrejs Baranovskisc8570d07efe1
diff --git a/.gitignore b/.gitignore
index f7e0f6c..6f7bcc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/build
/playground
glance*.yml
+/.idea
\ No newline at end of file
diff --git a/Dockerfile.debug b/Dockerfile.debug
new file mode 100644
index 0000000..9ecff9d
--- /dev/null
+++ b/Dockerfile.debug
@@ -0,0 +1,16 @@
+FROM golang:1.23.1-alpine3.20 AS builder
+
+WORKDIR /app
+COPY . /app
+
+RUN go install github.com/go-delve/delve/cmd/dlv@latest
+RUN CGO_ENABLED=0 go build -gcflags="all=-N -l" .
+
+FROM alpine:3.20
+
+WORKDIR /app
+COPY --from=builder /app/glance .
+COPY --from=builder /go/bin/dlv .
+
+EXPOSE 2345/tcp 8080/tcp
+CMD ["./dlv", "--listen=:2345", "--headless=true", "--api-version=2", "--accept-multiclient", "exec", "./glance"]
\ No newline at end of file