mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Adding docker files
This commit is contained in:
28
Dockerfile
28
Dockerfile
@@ -1,16 +1,28 @@
|
||||
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 Pipfile /src
|
||||
ADD Pipfile.lock /src
|
||||
RUN apk add --no-cache tini bash unrar dcron postgresql-dev gcc python3-dev musl-dev
|
||||
|
||||
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 mkdir /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
ADD Pipfile /src
|
||||
ADD Pipfile.lock /src
|
||||
|
||||
RUN pipenv install --deploy --dev --ignore-pipfile --system
|
||||
|
||||
COPY . /src/
|
||||
|
||||
RUN cat /src/cbreader/crontab >> /etc/crontabs/root
|
||||
EXPOSE 8000
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user