forked from bilaleren/e-fatura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 767 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
FROM node:16.14.2-alpine
ENV CHROME_BIN="/usr/bin/chromium-browser"
ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium-browser"
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /usr/src/apps/e-fatura
COPY ./dist ./dist
COPY ./yarn.lock ./yarn.lock
COPY ./package.json ./package.json
COPY ./examples/pdf-example.js ./index.js
RUN yarn install
RUN mkdir invoice-data
RUN set -x \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
dumb-init \
udev \
ttf-freefont \
chromium \
# Cleanup
&& apk del --no-cache make gcc g++ python3 binutils-gold gnupg libstdc++ \
&& rm -rf /usr/include \
&& rm -rf /var/cache/apk/* /root/.node-gyp /usr/share/man /tmp/* \
&& echo
ENTRYPOINT ["node"]
CMD ["./index.js"]