21 lines
328 B
Docker
21 lines
328 B
Docker
FROM golang:1.22-alpine AS backend-build
|
|
|
|
WORKDIR /build
|
|
|
|
COPY *.go .
|
|
COPY go.mod .
|
|
|
|
RUN go build -tags timetzdata -ldflags "-s -w" -o /tmp/rss
|
|
|
|
FROM alpine:3.20 AS base
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=backend-build /tmp/rss /app/rss
|
|
COPY go.mod .
|
|
COPY templates templates
|
|
COPY static static
|
|
|
|
RUN chmod +x /app/rss
|
|
|
|
CMD ["/app/rss"]
|