-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 1.15 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
FROM python:3.11.2-slim-buster
MAINTAINER Gregory Wiedeman [email protected]
ENV FLASK_APP=app
ENV TZ=America/New_York
EXPOSE 5000
COPY ./requirements.txt /code/requirements.txt
WORKDIR /code
RUN apt update
RUN apt install apt-transport-https gnupg wget aptitude -y
RUN echo 'deb [trusted=yes] https://notesalexp.org/tesseract-ocr5/buster/ buster main' >> /etc/apt/sources.list
RUN apt update -oAcquire::AllowInsecureRepositories=true
RUN apt install notesalexp-keyring -oAcquire::AllowInsecureRepositories=true -y
RUN wget -O - https://notesalexp.org/debian/alexp_key.asc | apt-key add -
RUN apt update
RUN aptitude install tesseract-ocr -y
RUN apt install poppler-utils -y
RUN apt install tzdata -y
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt install poppler-utils -y
RUN apt install rsync -y
RUN apt install imagemagick -y
RUN rm /etc/ImageMagick-6/policy.xml
COPY conf/policy.xml /etc/ImageMagick-6/policy.xml
RUN pip install -r requirements.txt
COPY .archivessnake.yml /root
COPY .hyrax.yml /root
COPY . /code
RUN ["chmod", "+x", "./gunicorn.sh"]
ENTRYPOINT ["./gunicorn.sh"]