# Startdate: 2023-06-15-5 11:49 # Purpose: docker image for newspipe # Usage: # docker build . --tag newspipe:latest # docker run -p 5938:8081 --mount type=bind,source=./instance,destination=/newspipe/instance -it --rm newspipe:latest FROM devuan/devuan:unstable MAINTAINER bgstack15@gmail.com ENV NEWSPIPE_CONFIG=sqlite.py ENV FLASK_APP=runserver.py ENV FLASK_DEBUG=1 ENV PATH="${PATH}":/ # Instructions from https://git.sr.ht/~cedric/newspipe RUN apt-get update && \ apt-get -y install --no-install-recommends git npm python3-poetry python3-babel python3-flask && \ rm -rf /var/lib/apt/lists/* || : ; \ git clone https://bgstack15.ddns.net/cgit/newspipe /newspipe && \ git config --global --add safe.directory /newspipe && \ cd newspipe && \ git checkout ldap-auth && \ npm install && \ npm ci WORKDIR /newspipe # ldap3 line is required for only branch ldap-auth RUN poetry install --no-dev && \ poetry run pip3 install ldap3 dnspython && \ poetry run pybabel compile -d newspipe/translations && \ poetry run flask db_create || : ; \ poetry run flask db_init ; \ cp -prf instance orig # if you want to hardcode this in the image: #cp -prf instance orig && \ #poetry run flask create_admin --nickname "admin" --password "1234567890" COPY entrypoint.sh / EXPOSE 8081 CMD [ "/entrypoint.sh" ]