Skip to content

Commit 6939de7

Browse files
committed
use alpine image
for hopefully faster build time
1 parent 6ea6d42 commit 6939de7

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

Dockerfile

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
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

1310
WORKDIR /app
1411

1512
COPY package.json .
1613
COPY yarn.lock .
1714
RUN yarn install
1815
COPY . .
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..
2322
RUN ./schema_gen.sh
2423
RUN yarn build
2524

0 commit comments

Comments
 (0)