forked from openlabs/docker-wkhtmltopdf-aas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:16.04
MAINTAINER Fabian Beuke <[email protected]>
RUN apt-get update && \
apt-get install -y --no-install-recommends npm wget fontconfig \
libfontconfig1 libfreetype6 libjpeg-turbo8 libx11-6 libxext6 \
libxrender1 xfonts-base xfonts-75dpi curl python-software-properties && \
wget -q https://downloads.wkhtmltopdf.org/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 && \
curl -sL https://deb.nodesource.com/setup_7.x | bash - && \
apt-get install -y nodejs
RUN npm install -g yarn coffee-script forever bootprint bootprint-openapi
# generate documentation from swagger
COPY swagger.yaml /
RUN bootprint openapi swagger.yaml documentation && \
npm uninstall -g bootprint bootprint-openapi
# install dependencies
COPY package.json /
RUN yarn install
COPY app.coffee /
EXPOSE 5555
RUN node --version && \
npm --version && \
coffee --version
CMD ["npm", "start"]