1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM alpine:latest AS build
RUN apk update
RUN apk upgrade
RUN apk add --update gcc g++ git curl
RUN apk add --no-cache go~=1.25
ARG CACHE_BUST=1
# git cannot clone a bundle over HTTP, so download it first.
RUN curl -fsSL -o /rss-kakapo.bundle https://sources.profpatsch.de/rss-kakapo.bundle \
&& git clone /rss-kakapo.bundle /repo
ARG APP_VERSION=v0.0.0
WORKDIR /repo
RUN echo "$APP_VERSION" > ./src/server/www/version.txt
RUN sh ./build.sh
FROM alpine:latest
WORKDIR /app
COPY --from=build repo/bin /app/
RUN chmod +x ./rss-kakapo
ENTRYPOINT [ "./rss-kakapo" ]
|