forked from openlabs/docker-wkhtmltopdf-aas
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
38 lines (31 loc) · 1.62 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
FROM ubuntu:22.04
RUN apt update && \
apt install -y --no-install-recommends \
add-apt-key \
fontconfig \
curl \
libcurl4 \
libcurl3-gnutls \
libfontconfig1 \
libfreetype6 \
libjpeg-turbo8 \
libpng-dev \
libx11-6 \
libxext6 \
libxrender1 \
software-properties-common \
wget \
xfonts-75dpi \
xfonts-base \
wkhtmltopdf
RUN mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg &&echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt update && apt install -y --no-install-recommends nodejs
COPY swagger.yaml package.json app.coffee /
RUN npm install -g coffeescript forever bootprint bootprint-openapi && \
bootprint openapi swagger.yaml documentation && \
npm uninstall -g bootprint bootprint-openapi
RUN npm update && \
node --version && \
npm --version && \
coffee --version
EXPOSE 5555
CMD ["npm", "start"]