peertube-instance-index-filter/docker/Dockerfile

21 lines
454 B
Text
Raw Permalink Normal View History

2025-06-23 09:40:20 +03:00
FROM golang:1.24
2025-06-23 12:50:46 +03:00
RUN apt-get update && apt-get -y install cron
2025-06-23 09:40:20 +03:00
WORKDIR /usr/src/app
2025-06-23 10:23:18 +03:00
ADD ./peertube-instance-index-filter ./
2025-06-23 09:40:20 +03:00
2025-06-23 10:23:18 +03:00
ADD ./instances.db ./
2025-06-23 09:40:20 +03:00
RUN go mod download && go mod verify
RUN go build -v -o /usr/local/bin/peertube-instance-index-filter ./...
ENV GIN_MODE release
RUN set -ex; \
echo '0 1 * * * /usr/local/bin/peertube-instance-index-filter -command collect' > /var/spool/cron/crontabs/root
CMD ["peertube-instance-index-filter"]