Restore working codebase with all methods

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
primal
2026-02-01 19:08:53 -05:00
parent 211812363a
commit 8a9001c02c
18 changed files with 2357 additions and 331 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
FROM golang:1.24-alpine AS builder
FROM golang:latest AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache gcc musl-dev
RUN apt-get update && apt-get install -y gcc && rm -rf /var/lib/apt/lists/*
# Copy go mod files first for layer caching
COPY go.mod go.sum ./
@@ -17,12 +17,12 @@ COPY static/ ./static/
RUN CGO_ENABLED=1 go build -o 1440.news .
# Runtime stage
FROM alpine:latest
FROM ubuntu:latest
WORKDIR /app
# Install runtime dependencies
RUN apk add --no-cache ca-certificates tzdata
RUN apt-get update && apt-get install -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
# Copy binary from builder
COPY --from=builder /app/1440.news .