feat: update node version from 8 to 12
This commit is contained in:
parent
73349836cb
commit
60f4d82a65
4 changed files with 21 additions and 21 deletions
|
|
@ -8,7 +8,7 @@ FROM ubuntu:18.04 as system
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
|
|
||||||
# built-in packages
|
# built-in packages
|
||||||
|
|
@ -40,8 +40,8 @@ RUN apt update \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# Additional packages require ~600MB
|
# Additional packages require ~600MB
|
||||||
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
||||||
|
|
||||||
|
|
@ -78,14 +78,14 @@ RUN apt-get update \
|
||||||
FROM ubuntu:18.04 as builder
|
FROM ubuntu:18.04 as builder
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||||
&& apt-get install -y nodejs
|
&& apt-get install -y nodejs
|
||||||
|
|
||||||
# yarn
|
# yarn
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ COPY --from=amd64 /usr/bin/qemu-aarch64-static /usr/bin/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
|
|
||||||
# built-in packages
|
# built-in packages
|
||||||
|
|
@ -44,8 +44,8 @@ RUN apt update \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# Additional packages require ~600MB
|
# Additional packages require ~600MB
|
||||||
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
||||||
|
|
||||||
|
|
@ -78,14 +78,14 @@ RUN apt-get update \
|
||||||
FROM ubuntu:18.04 as builder
|
FROM ubuntu:18.04 as builder
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||||
&& apt-get install -y nodejs
|
&& apt-get install -y nodejs
|
||||||
|
|
||||||
# yarn
|
# yarn
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ COPY --from=amd64 /usr/bin/qemu-arm-static /usr/bin/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
|
|
||||||
# built-in packages
|
# built-in packages
|
||||||
|
|
@ -44,8 +44,8 @@ RUN apt update \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# Additional packages require ~600MB
|
# Additional packages require ~600MB
|
||||||
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
||||||
|
|
||||||
|
|
@ -78,14 +78,14 @@ RUN apt-get update \
|
||||||
FROM ubuntu:18.04 as builder
|
FROM ubuntu:18.04 as builder
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||||
&& apt-get install -y nodejs
|
&& apt-get install -y nodejs
|
||||||
|
|
||||||
# yarn
|
# yarn
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ FROM arm32v7/{{image}} as system
|
||||||
COPY --from=amd64 /usr/bin/qemu-arm-static /usr/bin/
|
COPY --from=amd64 /usr/bin/qemu-arm-static /usr/bin/
|
||||||
{%endif%}
|
{%endif%}
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
|
|
||||||
# built-in packages
|
# built-in packages
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
@ -51,7 +51,7 @@ RUN apt update \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{%if desktop == "lxqt" %}
|
{%if desktop == "lxqt" %}
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
||||||
|
|
@ -59,7 +59,7 @@ RUN apt update \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{%if desktop == "xfce4" %}
|
{%if desktop == "xfce4" %}
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
||||||
|
|
@ -67,7 +67,7 @@ RUN apt update \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
{%endif%}
|
{%endif%}
|
||||||
# Additional packages require ~600MB
|
# Additional packages require ~600MB
|
||||||
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
||||||
|
|
||||||
|
|
@ -105,14 +105,14 @@ RUN apt-get update \
|
||||||
FROM {{image}} as builder
|
FROM {{image}} as builder
|
||||||
|
|
||||||
{% if localbuild == 1 %}
|
{% if localbuild == 1 %}
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||||
&& apt-get install -y nodejs
|
&& apt-get install -y nodejs
|
||||||
|
|
||||||
# yarn
|
# yarn
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue