Skip to content

Commit c3cd103

Browse files
committed
feat: node v22
1 parent 3336471 commit c3cd103

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# circle-ci-base
2+
23
contains node + docker + docker-compose
4+
5+
## development
6+
7+
If you want to test the build on an apple silicon chip you need to provide a build platform `linux/amd64`:
8+
9+
```
10+
❯ docker build --platform linux/amd64 -f main.dockerfile -t eyesquare/base-images:main-8.0.0 .
11+
```

main.dockerfile

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
1-
FROM node:18.12.1-slim
1+
FROM node:22.12.0-slim
22

3-
ENV LERNA_VERSION 6
3+
ENV LERNA_VERSION=6
44

5-
ENV NPM_CONFIG_LOGLEVEL warn
6-
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
7-
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD true
5+
ENV NPM_CONFIG_LOGLEVEL=warn
6+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
7+
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=true
88

99
# base services
1010
RUN apt-get update &&\
11-
apt-get install -yq wget gnupg openssl ranger vim neovim curl python-dev python3-pip git jq awscli
12-
13-
# node-canvas
14-
RUN apt-get update &&\
15-
apt-get install -yq pkg-config libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg62-turbo-dev libgif-dev
11+
apt-get install -yq wget gnupg openssl ranger vim neovim curl python-dev-is-python3 python3-pip git jq awscli
1612

1713
# ffmpeg
1814
RUN apt-get update && apt-get install -yq ffmpeg
1915

2016
# chrome setup
21-
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
22-
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
17+
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | tee /etc/apt/keyrings/google.asc >/dev/null \
18+
&& sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.asc] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
2319
&& apt-get update \
2420
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
2521
--no-install-recommends \
@@ -32,11 +28,7 @@ RUN apt-get update &&\
3228
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
3329
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
3430
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils \
35-
xvfb x11vnc x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps
36-
37-
# dotfiles (optional)
38-
COPY dotfiles/.bashrc /root/.bashrc
39-
COPY dotfiles/init.vim /root/.config/nvim/init.vim
31+
xvfb x11vnc x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable x11-apps
4032

4133
RUN yarn global add \
4234
lerna@${LERNA_VERSION} \

0 commit comments

Comments
 (0)