Skip to content

Instantly share code, notes, and snippets.

@otrack
Last active November 24, 2023 16:46
Show Gist options
  • Save otrack/d0f1f0eff4a4271c71196a572f721d78 to your computer and use it in GitHub Desktop.
Save otrack/d0f1f0eff4a4271c71196a572f721d78 to your computer and use it in GitHub Desktop.
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