File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,22 @@ RUN pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
2323FROM build AS collectstatic
2424
2525USER 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"
2630RUN \
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
You can’t perform that action at this time.
0 commit comments