Skip to content

Commit

Permalink
update and optimize Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
madnight committed Aug 23, 2016
1 parent c36dd0b commit 14178fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM ubuntu:14.04
FROM ubuntu:16.04

WORKDIR /tmp
RUN apt-get update && \
apt-get install -y --no-install-recommends wget fontconfig libfontconfig1 libfreetype6 libjpeg-turbo8 libx11-6 libxext6 libxrender1 xfonts-base xfonts-75dpi && \
apt-get install -y --no-install-recommends wget fontconfig libfontconfig1 libfreetype6 libjpeg-turbo8 libx11-6 libxext6 libxrender1 xfonts-base xfonts-75dpi && \
wget -q http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && \
dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && \
rm /usr/local/bin/wkhtmltoimage && \
apt-get purge -y wget && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*

WORKDIR /

ENTRYPOINT ["wkhtmltopdf"]
Expand Down

0 comments on commit 14178fd

Please sign in to comment.