forked from typpo/quickchart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (21 loc) · 924 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
FROM node:10-alpine3.9
ENV NODE_ENV production
WORKDIR /quickchart
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --no-cache --virtual .build-deps yarn git build-base g++ python
RUN apk add --no-cache --virtual .npm-deps cairo-dev pango-dev libjpeg-turbo-dev
RUN apk add --no-cache --virtual .fonts libmount ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family font-noto font-noto-emoji fontconfig
RUN apk add wqy-zenhei --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing --allow-untrusted
RUN apk add --no-cache --virtual .runtime-deps graphviz
COPY package*.json ./
RUN npm install --production
RUN apk update
RUN rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
RUN apk del .build-deps
COPY *.js ./
COPY *.png ./
COPY lib/*.js lib/
COPY LICENSE .
EXPOSE 3400
ENTRYPOINT ["node", "--max-http-header-size=65536", "index.js"]