feat: Removed docx and added PDF support

This commit is contained in:
2018-03-11 22:00:16 +01:00
parent 655a0461f5
commit 9e1126b621
8 changed files with 119 additions and 62 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM python:3
WORKDIR /usr/src/app
RUN apt-get -qq update && \
apt-get -q -y upgrade && \
apt-get install -y locales && \
rm -rf /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# nl_NL.UTF-8 UTF-8/nl_NL.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 1212
CMD ["python", "./test.py"]