-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (37 loc) · 870 Bytes
/
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
FROM debian:buster-slim
ARG WORK_DIR=/app
WORKDIR $WORK_DIR
RUN apt-get update && apt-get install -y \
fonts-liberation \
curl \
unzip \
ca-certificates \
libglib2.0-0 \
libnss3 \
libnspr4 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdbus-1-3 \
libxkbcommon0 \
libxdamage1 \
libxcomposite1 \
libxrandr2 \
libgbm1 \
libpango-1.0-0 \
libcairo2 \
libasound2 \
libatspi2.0-0 \
libgtk-3-0 \
fonts-noto-color-emoji \
fonts-wqy-zenhei \
fonts-wqy-microhei \
fontconfig \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV PORT=80
EXPOSE $PORT
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
RUN npm init -y && npm install express express-ws ws puppeteer
COPY ./server.js .
ENTRYPOINT node server.js