Skip to content

Commit c46688c

Browse files
authored
Merge pull request #1983 from DefectDojo/1.5.4.1
Backport nodejs fix
2 parents 7f0dfc1 + e73f033 commit c46688c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile.nginx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,22 @@ RUN pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
2323
FROM build AS collectstatic
2424

2525
USER root
26+
ENV \
27+
# This will point yarn to whatever version of node you decide to use
28+
# due to the use of nodejs instead of node name in some distros
29+
node="nodejs"
2630
RUN \
2731
apt-get -y update && \
2832
apt-get -y install apt-transport-https ca-certificates && \
2933
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
30-
echo "deb https://deb.nodesource.com/node_11.x stretch main" | tee /etc/apt/sources.list.d/nodesource.list && \
34+
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
3135
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
32-
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
36+
echo "deb https://nightly.yarnpkg.com/debian/ nightly main" | tee /etc/apt/sources.list.d/yarn.list && \
3337
apt-get -y update && \
3438
apt-get -y install nodejs && \
39+
echo "$(node --version)" && \
3540
apt-get -y install --no-install-recommends yarn && \
41+
echo "$(yarn --version)" && \
3642
apt-get clean && \
3743
rm -rf /var/lib/apt/lists && \
3844
true

0 commit comments

Comments
 (0)