add local snapshot to repo; add Dockerfile; update docker-compose.yml;

This commit is contained in:
davisv7 2025-08-31 15:56:34 -04:00
parent bc74ef9cbd
commit d55d7832bc
10 changed files with 2471532 additions and 2 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
# Use the official Golang image to create a build artifact.
FROM golang:1.25
# Set the Current Working Directory inside the container
WORKDIR /app
# Copy go mod and sum files
COPY go.mod go.sum ./
#COPY .env ./
COPY describegraph.json /app/describegraph.json
# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
RUN go mod tidy
# Copy the source from the current directory to the Working Directory inside the container
COPY . .
# Build the Go app
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o lnstream .
# Command to run the executable
CMD ["./lnstream"]