Skip to content

Commit 7f97e38

Browse files
committed
fix: install nodejs after apt-get
1 parent f0ee0ca commit 7f97e38

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ FROM ubuntu:22.04 as production
1818
ARG TIMEZONE=UTC
1919

2020
### UPDATE ###
21-
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
2221
RUN apt update
2322

2423
### INSTALL APT-GET LIBS ###
@@ -30,8 +29,12 @@ RUN ln -fs /usr/share/zoneinfo/$TIMEZONE /etc/localtime && DEBIAN_FRONTEND=nonin
3029
libtiff5-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
3130
python3-dev libavutil-dev libmp3lame-dev libx264-dev yasm autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev \
3231
libtool libvorbis-dev pkg-config texi2html libtext-unidecode-perl python3-numpy python3-scipy perl \
33-
adb ethtool nodejs cmake git-core libsdl2-dev libva-dev libvdpau-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev texinfo wget \
34-
ttf-mscorefonts-installer fonts-noto fonts-roboto fonts-open-sans ffmpeg npm sudo curl xvfb
32+
adb ethtool cmake git-core libsdl2-dev libva-dev libvdpau-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev texinfo wget \
33+
ttf-mscorefonts-installer fonts-noto fonts-roboto fonts-open-sans ffmpeg sudo curl xvfb
34+
35+
### INSTALL NodeJS ###
36+
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
37+
apt-get install nodejs npm -y
3538

3639
### UPDATE FONT CACHE ###
3740
RUN fc-cache -f -v

0 commit comments

Comments
 (0)