No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 829B

1234567891011121314151617181920212223
  1. FROM tiangolo/uwsgi-nginx:python2.7
  2. RUN apt-get update -y \
  3. && apt-get install -y wkhtmltopdf libfontconfig xvfb
  4. RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz\
  5. && tar vxf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz\
  6. && cp wkhtmltox/bin/wk* /usr/local/bin/ \
  7. && rm -r wkhtml*
  8. # RUN echo '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh\
  9. # && chmod a+x /usr/bin/wkhtmltopdf.sh\
  10. # && ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
  11. ADD requirements.txt /app/
  12. # Install the Python dependencies
  13. RUN pip install -r requirements.txt
  14. # add the current directory . into the path /app in the image
  15. ADD . /app
  16. # set the working directory to /app
  17. WORKDIR /app