Skip to content

Commit e88c9b3

Browse files
authored
Dockerfile docs node18 - update so we can use vitepress (#350)
1 parent 80df74d commit e88c9b3

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

docker/Dockerfile_docs

+7-25
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# PX4 docs build environment
33
#
44

5-
FROM ubuntu:focal
5+
FROM ubuntu:jammy
66
LABEL maintainer="Daniel Agar <[email protected]>"
77

88
RUN apt-get update \
@@ -12,8 +12,6 @@ RUN apt-get update \
1212
git \
1313
gosu \
1414
libfontconfig \
15-
npm \
16-
nodejs \
1715
ruby-dev \
1816
zlib1g-dev \
1917
curl \
@@ -24,27 +22,14 @@ RUN apt-get update \
2422
&& apt-get clean autoclean \
2523
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
2624

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
3028

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
4731

32+
# Install html-proofer
4833
RUN gem install html-proofer
4934

5035
# create user with id 1001 (jenkins docker workflow default)
@@ -54,9 +39,6 @@ USER user
5439
ENV NPM_CONFIG_PREFIX=/home/user/.npm-global
5540
ENV PATH=$PATH:/home/user/.npm-global/bin
5641

57-
RUN npm config set registry http://registry.npmjs.org/ \
58-
&& npm install gitbook-cli -g --unsafe-perm=true
59-
6042
ENV TERM=xterm
6143
ENV TZ=UTC
6244

0 commit comments

Comments
 (0)