forked from readmeio/markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 888 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
ARG NODE_VERSION=14
FROM node:${NODE_VERSION}-buster
ARG NODE_VERSION
ENV NODE_VERSION=$NODE_VERSION
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
RUN apt-get update && apt-get install -y \
curl \
gnupg \
fonts-noto-color-emoji \
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& 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 google-chrome-stable -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g npm@latest
ENV DOCKER_WORKSPACE=/markdown
WORKDIR ${DOCKER_WORKSPACE}
COPY package.json package-lock.json ./
RUN npm install
COPY . ./
RUN make emojis
EXPOSE 9966
CMD ["test.browser"]
ENTRYPOINT ["npm", "run"]