Compare commits

..

2 Commits

Author SHA1 Message Date
bcd56644b9 Add Dockerfile 2025-03-09 23:50:37 -04:00
e9c425b258 Add connection name 2025-03-09 23:50:28 -04:00
2 changed files with 14 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.24
WORKDIR /usr/src/app
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -v -o /usr/local/bin/app ./...
CMD ["app"]

View File

@@ -65,6 +65,8 @@ func main() {
opts = append(opts, nats.UserCredentials(natsCredsFile))
}
opts = append(opts, nats.Name("Bluesky Proxy"))
nc, err := nats.Connect(natsURL, opts...)
if err != nil {
log.Fatal("Error connecting to NATS:", err)