2018-11-14 07:38:07 +01:00
|
|
|
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 \
|
2023-02-08 12:58:40 +01:00
|
|
|
&& pip install -r requirements.txt \
|
|
|
|
&& apk del --purge .build-deps \
|
2023-02-08 13:34:34 +01:00
|
|
|
&& apk add bash \
|
2023-02-08 12:58:40 +01:00
|
|
|
&& ln -s data/config.json . \
|
|
|
|
&& ln -s data/toots.db .
|
2018-11-14 07:38:07 +01:00
|
|
|
|
2023-02-08 12:58:40 +01:00
|
|
|
ADD entrypoint.sh ./
|
2023-02-08 13:22:41 +01:00
|
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
|
2023-02-08 12:58:40 +01:00
|
|
|
ADD *.py ./
|
2018-11-14 07:38:07 +01:00
|
|
|
|
2023-02-08 11:46:51 +01:00
|
|
|
ENV EBOOKS_SITE=https://botsin.space
|
|
|
|
ENV POST_TIMINGS="*/30 * * * *"
|
|
|
|
ENV FETCH_TIMINGS="5 */2 * * *"
|
2018-11-14 07:38:07 +01:00
|
|
|
|
2023-02-08 12:58:40 +01:00
|
|
|
ENTRYPOINT [ "/ebooks/entrypoint.sh" ]
|