|
@@ -38,10 +38,10 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
|
|
|
# libatomic1 for arm
|
|
|
&& apt-get update && apt-get install -y ca-certificates apt-utils curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends \
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
- && curl -fsSLO --compressed "https://npmmirror.com/mirrors/node/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
|
|
|
- && curl -fsSLO --compressed "https://npmmirror.com/mirrors/node/v$NODE_VERSION/SHASUMS256.txt.asc" \
|
|
|
- && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
|
|
|
- && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
|
|
|
+ && curl -fsSLO --compressed "https://npmmirror.com/mirrors/node/v18.19.1/node-v18.19.1-linux-$ARCH.tar.xz" \
|
|
|
+ && curl -fsSLO --compressed "https://npmmirror.com/mirrors/node/v18.19.1/SHASUMS256.txt.asc" \
|
|
|
+ && tar -xJf "node-v18.19.1-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
|
|
|
+ && rm "node-v18.19.1-linux-$ARCH.tar.xz" \
|
|
|
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
|
|
|
|
|
|
|
|
@@ -78,17 +78,17 @@ RUN cd /opt/edu-textbook-server && pm2 start server.js \
|
|
|
&& npm --version
|
|
|
|
|
|
######################################## Clean All Resources
|
|
|
-RUN apt-mark auto '.*' > /dev/null \
|
|
|
- && find /usr/local -type f -executable -exec ldd '{}' ';' \
|
|
|
- | awk '/=>/ { print $(NF-1) }' \
|
|
|
- | sort -u \
|
|
|
- | xargs -r dpkg-query --search \
|
|
|
- | cut -d: -f1 \
|
|
|
- | sort -u \
|
|
|
- | xargs -r apt-mark manual \
|
|
|
- && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
|
|
- && rm -rf /var/log/* \
|
|
|
- && env
|
|
|
+# RUN apt-mark auto '.*' > /dev/null \
|
|
|
+# && find /usr/local -type f -executable -exec ldd '{}' ';' \
|
|
|
+# | awk '/=>/ { print $(NF-1) }' \
|
|
|
+# | sort -u \
|
|
|
+# | xargs -r dpkg-query --search \
|
|
|
+# | cut -d: -f1 \
|
|
|
+# | sort -u \
|
|
|
+# | xargs -r apt-mark manual \
|
|
|
+# && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
|
|
+# && rm -rf /var/log/* \
|
|
|
+# && env
|
|
|
# && rm -r /var/log/postgresql/* \
|
|
|
# && rm -r /var/log/apt/* \
|
|
|
# && rm -r /var/log/nginx/* \
|