forked from Travvy88/DocumentGenerator_DoGe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 634 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:22.04
# Install python and libreoffice
RUN apt-get update && apt-get install -y libreoffice python3 python3-pip git libjpeg-dev zlib1g-dev poppler-utils
# install unoserver to python that is used by LibreOffice
RUN /usr/bin/python3 -m pip install --user unoserver
# Set working directory to /app
WORKDIR /app
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip3 install -r requirements.txt
# Copy the current directory contents into the container at /app
COPY src /app/src
COPY main.py /app/main.py
COPY docx_config.json /app/docx_config.json
# run interactively
CMD ["/bin/bash"]