Update shared references to commons

This commit is contained in:
primal
2026-02-02 15:19:48 -05:00
parent bd76ea1108
commit 7b50f5c008
2 changed files with 6 additions and 46 deletions
+3 -8
View File
@@ -11,10 +11,9 @@ RUN go mod download
# Copy source code
COPY *.go ./
COPY static/ ./static/
# Build the binary
RUN CGO_ENABLED=1 go build -o 1440.news .
RUN CGO_ENABLED=1 go build -o crawler .
# Runtime stage
FROM ubuntu:latest
@@ -25,13 +24,9 @@ WORKDIR /app
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 /app/1440.news .
COPY --from=builder /app/static ./static
COPY --from=builder /app/crawler .
# Create feeds directory
RUN mkdir -p feeds
# Expose dashboard port
EXPOSE 4321
CMD ["./1440.news"]
CMD ["./crawler"]