-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 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
FROM node:12-slim
LABEL maintainer "gecko655 <[email protected]>"
WORKDIR /root
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y wget gnupg\
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic --allow-unauthenticated\
&& apt-get install -y busybox-static \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN touch /tmp/cronlog.log
ADD package.json package-lock.json tsconfig.json ./
RUN npm i
COPY crontab.config /var/spool/cron/crontabs/root
ADD index.ts ./
CMD busybox crond -L /tmp/cronlog.log && tail -f /tmp/cronlog.log