File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 1- FROM node:24
1+ FROM zenika/alpine-chrome:with-puppeteer
22
3- # install chrome for puppeteer (how annoying)
4- RUN apt-get update \
5- && apt-get install -y wget gnupg \
6- && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
7- && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
8- && apt-get update \
9- && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
10- --no-install-recommends \
11- && rm -rf /var/lib/apt/lists/*
3+ USER root
4+ RUN set -eux \
5+ & apk add \
6+ --no-cache \
7+ yarn \
8+ bash
129
1310WORKDIR /app
1411
1512COPY package.json .
1613COPY yarn.lock .
1714RUN yarn install
1815COPY . .
19- RUN for f in ./config/*.example.json; do \
20- cp "$f" "./config/$(basename " $f" .example.json).json" ; \
16+ RUN cd ./config && \
17+ for f in *.example.json; do \
18+ cp "$f" "${f/.example.json/.json}" ; \
2119 done
22-
20+
21+ # todo: remove/replace schema_gen.sh it is so slow..
2322RUN ./schema_gen.sh
2423RUN yarn build
2524
You can’t perform that action at this time.
0 commit comments