Add container definition

This commit is contained in:
Mattéo Delabre 2026-06-18 18:34:04 -04:00
parent 6589ecae13
commit a33c9ab8c8
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
3 changed files with 31 additions and 0 deletions

11
Containerfile Normal file
View File

@ -0,0 +1,11 @@
FROM alpine:latest
MAINTAINER Mattéo Delabre spam@delab.re
# RUN sysctl net.ipv4.ip_unprivileged_port_start=0
# RUN adduser --system feedleware
WORKDIR /root
COPY requirements.txt .
COPY feedleware feedleware
RUN apk add --update --no-cache py3-pip
RUN pip install --break-system-packages --root-user-action=ignore --no-cache --upgrade -r requirements.txt
# USER feedleware
CMD python -m gunicorn -b 0.0.0.0:80 --threads 2 'feedleware:create_app()'

View File

@ -4,3 +4,5 @@ This is a lightweight Python application that generates RSS feeds for services t
Currently supported services: Currently supported services:
* Twitch * Twitch
* YouTube
* OpenAlex

18
feedleware.container Normal file
View File

@ -0,0 +1,18 @@
[Unit]
Description=Feedleware service
[Container]
ContainerName=feedleware
Image=docker.io/matteodelabre/feedleware:latest
Environment=FEEDLEWARE_TWITCH_CLIENT_ID=
Environment=FEEDLEWARE_TWITCH_SECRET=
Environment=FEEDLEWARE_YOUTUBE_KEY=
Environment=FEEDLEWARE_OPENALEX_EMAIL=
PublishPort=80:8080
[Service]
Restart=on-failure
TimeoutStartSec=900
[Install]
WantedBy=default.target