This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
forked from stenskjaer/lbp-print-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (35 loc) · 1.18 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
44
45
46
47
48
49
FROM ubuntu:18.10
# set environment encoding and some base utils
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y wget curl git
# should we add --no-install-recommends?
# texlive install
RUN apt-get install -y xzdec texlive-full latexmk
# texlive update and install reledmac
RUN tlmgr init-usertree
RUN tlmgr option repository http:https://mirror.ctan.org/systems/texlive/tlnet
RUN tlmgr update --self
RUN tlmgr install reledmac
# Manual install libertine
RUN wget http:https://mirrors.ctan.org/install/fonts/libertine.tds.zip
WORKDIR /texmf
RUN unzip /libertine.tds.zip
RUN texhash
RUN updmap --user --enable Map=libertine.map
# Java
RUN apt-get install -y default-jre
# Python and pip
RUN apt-get install -y python3.6 python3-pip
# App directory and install
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Create necessary dirs that are excluded via .gitignore
RUN mkdir upload static static/output logs cache
# Copy in the app content
COPY requirements.txt /usr/src/app/
RUN python3.6 -m pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
COPY texmf/ /root/texmf
EXPOSE 80
CMD gunicorn --worker-class eventlet -w 1 -b 0.0.0.0:80 service:app