1234567891011121314 |
- # FROM mcr.microsoft.com/dotnet/aspnet:7.0 as build
- FROM ubuntu:18.04 as builder
- RUN apt update && apt install -y wget
- RUN wget http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb
- RUN apt install -y ./libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb
- RUN wget https://github.com/pdf2htmlEX/pdf2htmlEX/releases/download/v0.18.8.rc1/pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb
- RUN apt install -y ./pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb
- RUN apt install -y python3
- WORKDIR /app
- COPY main.py .
- VOLUME [ "/app" ]
- ENTRYPOINT ["python3", "main.py"]
|