Dockerfile 627 B

1234567891011121314
  1. # FROM mcr.microsoft.com/dotnet/aspnet:7.0 as build
  2. FROM ubuntu:18.04 as builder
  3. RUN apt update && apt install -y wget
  4. RUN wget http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb
  5. RUN apt install -y ./libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb
  6. 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
  7. RUN apt install -y ./pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb
  8. RUN apt install -y python3
  9. WORKDIR /app
  10. COPY main.py .
  11. VOLUME [ "/app" ]
  12. ENTRYPOINT ["python3", "main.py"]