forked from ajurna/cbwebreader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (31 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM python:3
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
RUN mkdir /src
RUN mkdir /static
WORKDIR /src
ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1
RUN apt update
COPY requirements.txt /src
COPY package.json /src
COPY package-lock.json /src
#RUN apt install -y build-essential postgresql libmariadb-dev libmupdf-dev python3-dev libfreetype-dev libffi-dev libjbig2dec0-dev libjpeg-dev libharfbuzz-dev npm\
# && apt install tini bash unrar python3 mariadb-connector-c jpeg postgresql-libs jbig2dec jpeg openjpeg harfbuzz mupdf postgresql-client\
# && npm install \
# && pip install --upgrade pip \
# && pip install -r requirements.txt \
# && apt remove build-essential postgresql-dev mariadb-dev mariadb-connector-c-dev mupdf-dev python3-dev freetype-dev libffi-dev jbig2dec-dev jpeg-dev openjpeg-dev harfbuzz-dev npm
RUN apt install -y npm cron \
&& npm install \
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& apt remove -y npm \
&& apt -y auto-remove
COPY entrypoint.sh /src
COPY . /src/
RUN cat /src/cbreader/crontab >> /etc/cron.daily/cbreader
EXPOSE 8000