Restore working codebase with all methods
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user