sync Dockerfile, add new lines

This commit is contained in:
hackercat
2021-01-22 17:39:07 +00:00
parent 3b7189f165
commit f099cb9c6a
3 changed files with 41 additions and 18 deletions
+5 -5
View File
@@ -39,15 +39,15 @@ RUN set -Eeuxo pipefail && \
printf "Updated apt lists and upgraded packages\n\n" && \
apt -yq install --no-install-recommends ssh lsb-release gawk jq curl git wget sudo gnupg-agent ca-certificates software-properties-common apt-transport-https libyaml-0-2 zstd unzip && \
printf "Installed base utils\n" && \
printf "Cleaning image" && \
printf "Cleaning image\n" && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
printf "Cleaned up image"
printf "Cleaned up image\n"
# > Install Node.JS
RUN set -Eeuxo pipefail && \
printf "Installing Node.JS" && \
printf "Installing Node.JS\n" && \
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
DISTRO="$(lsb_release -s -c)" && \
echo "deb https://deb.nodesource.com/node_${NODE_VERSION}.x $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list && \
@@ -56,11 +56,11 @@ RUN set -Eeuxo pipefail && \
apt -yq install --no-install-recommends nodejs="${NODE_VERSION}*" && \
printf "Installed Node.JS $(node -v)\n" && \
dpkg-query -f '${binary:Package}\n' -W && \
printf "Cleaning image" && \
printf "Cleaning image\n" && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
printf "Cleaned up image"
printf "Cleaned up image\n"
# > Home repository
LABEL org.opencontainers.image.source="https://github.com/CatTheHacker/docker-images"