Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
node 12.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Jul 1, 2020
1 parent cbc18bc commit 881098a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV QEMU_ARCH=${QEMU_ARCH:-x86_64} S6_KEEP_ENV=1

COPY qemu/qemu-${QEMU_ARCH}-static /usr/bin/

RUN set -x && apk add --no-cache libgcc libstdc++ curl curl-dev coreutils tzdata shadow libstdc++ paxmark logrotate \
RUN set -x && apk add --no-cache libgcc libstdc++ curl curl-dev coreutils tzdata shadow libstdc++ paxmark logrotate py3-pip \
&& case "${QEMU_ARCH}" in \
x86_64) S6_ARCH='amd64';; \
arm) S6_ARCH='armhf';; \
Expand All @@ -18,11 +18,12 @@ RUN set -x && apk add --no-cache libgcc libstdc++ curl curl-dev coreutils tzdata
&& useradd -u 911 -U -d /config -s /bin/false abc \
&& usermod -G users abc \
&& mkdir -p /app /config /defaults \
&& pip3 install tzupdate \
&& apk del --purge \
&& rm -rf /tmp/* \
&& sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf

ENV NODE_VERSION 12.18.1
ENV NODE_VERSION 12.18.2

RUN set -x && curl -fLO https://github.com/oznu/alpine-node/releases/download/${NODE_VERSION}/node-v${NODE_VERSION}-linux-${QEMU_ARCH}-alpine.tar.gz \
&& tar -xzf node-v${NODE_VERSION}-linux-${QEMU_ARCH}-alpine.tar.gz -C /usr --strip-components=1 --no-same-owner \
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV QEMU_ARCH=${QEMU_ARCH:-x86_64} S6_KEEP_ENV=1
COPY qemu/qemu-${QEMU_ARCH}-static /usr/bin/

RUN set -x && apt-get update \
&& apt-get install -y curl wget tzdata locales psmisc procps iputils-ping logrotate libatomic1 apt-transport-https apt-utils \
&& apt-get install -y curl wget tzdata locales psmisc procps iputils-ping logrotate libatomic1 apt-transport-https apt-utils python3-setuptools \
&& locale-gen en_US.UTF-8 \
&& case "${QEMU_ARCH}" in \
x86_64) S6_ARCH='amd64';; \
Expand All @@ -22,12 +22,14 @@ RUN set -x && apt-get update \
&& useradd -u 911 -U -d /config -s /bin/false abc \
&& usermod -G users abc \
&& mkdir -p /app /config /defaults \
&& curl -sf https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install tzupdate \
&& apt-get clean \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* \
&& rm -rf /etc/cron.daily/apt-compat /etc/cron.daily/dpkg /etc/cron.daily/passwd /etc/cron.daily/exim4-base \
&& sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf

ENV NODE_VERSION 12.18.1
ENV NODE_VERSION 12.18.2

RUN case "${QEMU_ARCH}" in \
x86_64) NODE_ARCH='x64';; \
Expand Down
2 changes: 2 additions & 0 deletions rootfs/etc/cont-init.d/20-set-timezone
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
if [ $TZ ]; then
[ -f /usr/share/zoneinfo/$TZ ] && cp /usr/share/zoneinfo/$TZ /etc/localtime || echo "WARNING: $TZ is not a valid time zone."
[ -f /usr/share/zoneinfo/$TZ ] && echo "$TZ" > /etc/timezone
else
tzupdate
fi

0 comments on commit 881098a

Please sign in to comment.