Last active
November 24, 2023 16:46
-
-
Save otrack/d0f1f0eff4a4271c71196a572f721d78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.10 | |
WORKDIR /app | |
RUN pip install delegator.py | |
RUN pip install web.py | |
RUN apt-get update && apt-get install -y imagemagick | |
RUN echo "<policy domain=\"coder\" rights=\"read|write\" pattern=\"PDF\" />" >> /etc/ImageMagick-6/policy.xml | |
ADD pdfmagic.py /app | |
EXPOSE 8080 | |
CMD ["python", "/app/pdfmagic.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment