-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 822 Bytes
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
FROM node:10-alpine
EXPOSE 3001
RUN apk update && apk upgrade && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
apk add --no-cache \
chromium@edge \
nss@edge
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN addgroup -S puppeteer && adduser -S -g puppeteer puppeteer \
&& mkdir -p /home/puppeteer/Downloads \
&& chown -R puppeteer:puppeteer /home/puppeteer
USER puppeteer
WORKDIR /home/puppeteer
COPY package.json package.json
COPY src src
RUN yarn
RUN yarn build
ENTRYPOINT ["dumb-init", "--"]
CMD node lib