-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (33 loc) · 1.58 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
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM node:8.4-slim
MAINTAINER Roy Meissner <meissner@informatik.uni-leipzig.de>
RUN mkdir /nodeApp
WORKDIR /nodeApp
# ---------------- #
# Installation #
# ---------------- #
RUN apt-get update
RUN apt-get install -y git libsqlite3-0 libfontconfig1 libpangocairo-1.0-0 libX11-xcb1 libXcomposite1 libXcursor1 libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1 libffi6 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 libgtk-3-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6 libx11-xcb1 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g libnss3 libXss1 libgconf-2-4
#RUN git clone --depth 1 https://github.com/astefanutti/decktape.git
#ADD http://astefanutti.github.io/decktape/downloads/phantomjs-linux-ubuntu16-x86-64 ./decktape/bin/phantomjs
#RUN chmod 700 ./decktape/bin/phantomjs
RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb
RUN dpkg -i dumb-init_*.deb
ADD ./application/package.json ./
RUN npm install --production
RUN npm install git+https://github.com/athird/epub-gen.git
RUN npm install git+https://github.com/athird/epub-gen.git
ADD ./application/ ./
# ----------------- #
# Configuration #
# ----------------- #
EXPOSE 80
# ----------- #
# Cleanup #
# ----------- #
RUN apt-get autoremove -y && apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
# -------- #
# Run! #
# -------- #
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["npm", "start"]