mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
14 lines
480 B
Docker
14 lines
480 B
Docker
FROM python:3-alpine
|
|
ENV PYTHONUNBUFFERED 1
|
|
RUN apk update
|
|
RUN apk add --no-cache tini bash unrar dcron postgresql-dev
|
|
RUN mkdir /src
|
|
WORKDIR /src
|
|
ADD requirements.txt /src/
|
|
RUN apk add --no-cache --virtual .build-deps mariadb-dev build-base \
|
|
&& pip install pipenv \
|
|
&& pipenv install --system \
|
|
&& apk add --virtual .runtime-deps mariadb-connector-c-dev mariadb-connector-c \
|
|
&& apk del .build-deps
|
|
ADD . /src/
|
|
RUN cat /src/cbreader/crontab >> /etc/crontabs/root |