Files
primal 81c92b5b51 Rename dashboard to watcher
- Container: atproto-1440news-watcher
- Endpoints: dashboard.1440.news and watcher.1440.news (alias)
- Updated Dockerfile and docker-compose.yml
- Updated go.mod module name
2026-02-02 13:26:36 -05:00

33 lines
612 B
Docker

FROM golang:latest AS builder
WORKDIR /build
# Copy shared module first
COPY shared/ ./shared/
# Copy watcher module
COPY watcher/ ./watcher/
# Build the binary
WORKDIR /build/watcher
RUN go mod download
RUN CGO_ENABLED=0 go build -o watcher .
# Runtime stage
FROM ubuntu:latest
WORKDIR /app
# Install runtime dependencies
RUN apt-get update && apt-get install -y ca-certificates tzdata curl wget && rm -rf /var/lib/apt/lists/*
# Copy binary from builder
COPY --from=builder /build/watcher/watcher .
# Copy static files
COPY --from=builder /build/watcher/static ./static
EXPOSE 4321
CMD ["./watcher"]