25 lines
391 B
Docker
25 lines
391 B
Docker
FROM ubuntu:20.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get upgrade -y \
|
|
&& apt-get install -y \
|
|
python3 \
|
|
python3-pip \
|
|
python3-dev \
|
|
libpoppler-cpp-dev \
|
|
build-essential \
|
|
curl \
|
|
git \
|
|
&& apt-get clean
|
|
|
|
RUN pip3 install --no-cache-dir Flask PyMuPDF
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["python3", "invoice_service.py"]
|