2
2
# PX4 docs build environment
3
3
#
4
4
5
- FROM ubuntu:focal
5
+ FROM ubuntu:jammy
6
6
LABEL maintainer="Daniel Agar <
[email protected] >"
7
7
8
8
RUN apt-get update \
@@ -12,8 +12,6 @@ RUN apt-get update \
12
12
git \
13
13
gosu \
14
14
libfontconfig \
15
- npm \
16
- nodejs \
17
15
ruby-dev \
18
16
zlib1g-dev \
19
17
curl \
@@ -24,27 +22,14 @@ RUN apt-get update \
24
22
&& apt-get clean autoclean \
25
23
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
26
24
27
- # Setup sources for getting yarn
28
- RUN curl -sS https://dl.yarnpkg .com/debian/pubkey.gpg | apt-key add -
29
- RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
25
+ # Install Node.js 18 and npm
26
+ RUN curl -fsSL https://deb.nodesource .com/setup_18.x | bash - \
27
+ && apt-get install -y nodejs
30
28
31
- RUN apt-get update \
32
- && DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
33
- yarn \
34
- && apt-get -y autoremove \
35
- && apt-get clean autoclean \
36
- && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
37
-
38
- # Set up to install nodejs in version (12) required for worker scripts
39
- RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
40
-
41
- RUN apt-get update \
42
- && DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
43
- nodejs \
44
- && apt-get -y autoremove \
45
- && apt-get clean autoclean \
46
- && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
29
+ # Install yarn
30
+ RUN npm install --global yarn
47
31
32
+ # Install html-proofer
48
33
RUN gem install html-proofer
49
34
50
35
# create user with id 1001 (jenkins docker workflow default)
@@ -54,9 +39,6 @@ USER user
54
39
ENV NPM_CONFIG_PREFIX=/home/user/.npm-global
55
40
ENV PATH=$PATH:/home/user/.npm-global/bin
56
41
57
- RUN npm config set registry http://registry.npmjs.org/ \
58
- && npm install gitbook-cli -g --unsafe-perm=true
59
-
60
42
ENV TERM=xterm
61
43
ENV TZ=UTC
62
44
0 commit comments