Update shared references to commons
This commit is contained in:
+3
-8
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user