update for devops

This commit is contained in:
2019-02-15 12:13:43 +00:00
parent fdc17846a7
commit 2571f4f58d
6 changed files with 368 additions and 9 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
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 \
&& 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