mirror of
https://github.com/AgathaSorceress/mstdn-ebooks.git
synced 2024-11-20 03:25:53 +01:00
25 lines
536 B
Docker
25 lines
536 B
Docker
FROM python:3-alpine
|
|
|
|
ADD requirements.txt /ebooks/
|
|
|
|
WORKDIR /ebooks/
|
|
VOLUME /ebooks/data/
|
|
|
|
RUN apk add --virtual .build-deps gcc musl-dev libffi-dev openssl-dev \
|
|
&& pip install -r requirements.txt \
|
|
&& apk del --purge .build-deps \
|
|
&& apk add bash \
|
|
&& ln -s data/config.json . \
|
|
&& ln -s data/toots.db .
|
|
|
|
ADD entrypoint.sh ./
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
ADD *.py ./
|
|
|
|
ENV EBOOKS_SITE=https://botsin.space
|
|
ENV POST_TIMINGS="*/30 * * * *"
|
|
ENV FETCH_TIMINGS="5 */2 * * *"
|
|
|
|
ENTRYPOINT [ "/ebooks/entrypoint.sh" ]
|