mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2026-11-22 22:48:59 +01:00
Upstream has changed their content generation system. When using the same http client, the first page looks as we expect it, but subsequent pages look totally different. I can't find out why that is, but it's not an issue of this tool. So, the "fix" is to abandon client reuse and re-initialize a new client for every http request. However, the image fetcher keeps resusing the client. Co-authored-by: Thomas von Dein <tom@vondein.org> Reviewed-on: https://codeberg.org/scip/kleingebaeck/pulls/126
28 lines
438 B
Docker
28 lines
438 B
Docker
FROM golang:1.26-alpine as builder
|
|
|
|
RUN apk update
|
|
RUN apk upgrade
|
|
RUN apk add --no-cache git make
|
|
|
|
RUN git --version
|
|
|
|
WORKDIR /work
|
|
|
|
COPY go.mod .
|
|
COPY . .
|
|
RUN go mod download
|
|
RUN make
|
|
|
|
FROM alpine:latest
|
|
LABEL maintainer="Thomas von Dein <git@daemon.de>"
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /work/kleingebaeck /app/kleingebaeck
|
|
|
|
ENV KLEINGEBAECK_OUTDIR /backup
|
|
ENV LANG C.UTF-8
|
|
USER 1001:1001
|
|
|
|
ENTRYPOINT ["/app/kleingebaeck"]
|
|
CMD ["-h"]
|