Compare commits

6 Commits

Author SHA1 Message Date
e22f13c105 Upgrade nodejs 16.13.1 and yarn 1.22.17 2022-01-08 12:47:29 +07:00
a3d4d2160c Fixed checksum for node archive 2021-12-23 09:46:57 +07:00
71a598cabf Updated readme and makefile 2021-12-23 09:18:49 +07:00
ec41473af3 Add node version 16.5 and yarn 1.22.15 2021-12-23 08:56:19 +07:00
Sambo Chea
db3b875005 Update docker-publish.yml 2021-09-26 18:51:12 +07:00
Sambo Chea
82b78116e9 Update docker-publish.yml 2021-07-14 15:04:32 +07:00
4 changed files with 15 additions and 12 deletions

View File

@@ -1,8 +1,8 @@
name: Docker CI
on:
release:
types: [created]
push:
branches: [ main ]
jobs:
docker:
@@ -20,7 +20,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Build and Push from Makefile
run: |

View File

@@ -4,7 +4,8 @@ LABEL maintainer="sombochea@cubetiqs.com"
# Build with root access
USER root
ENV NODE_VERSION 14.16.0
ENV NODE_VERSION 16.13.1
ENV NODE_SHA256 3b4c47e5554fa466651a767691fc76c09b6a514b49d79bbd0061e549614adedf
ENV USER_UID 1001
RUN addgroup -g ${USER_UID} node \
@@ -17,13 +18,15 @@ RUN addgroup -g ${USER_UID} node \
&& case "${alpineArch##*-}" in \
x86_64) \
ARCH='x64' \
CHECKSUM="53cd618bd0cd387d79e954383d67b540ebfbefee9e261800eefff60e1bf38644" \
CHECKSUM=$NODE_SHA256 \
;; \
*) ;; \
esac \
&& if [ -n "${CHECKSUM}" ]; then \
set -eu; \
curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; \
DL_ROOT="https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; \
echo "Downloading Node.js from ${DL_ROOT}"; \
curl -fsSLO --compressed $DL_ROOT; \
echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs; \
@@ -77,7 +80,7 @@ RUN addgroup -g ${USER_UID} node \
&& node --version \
&& npm --version
ENV YARN_VERSION 1.22.5
ENV YARN_VERSION 1.22.17
RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
&& for key in \

View File

@@ -1,5 +1,5 @@
DOCKER_IMAGE=cubetiq/calpine-node
DOCKER_IMAGE_NAME=${DOCKER_IMAGE}:14
DOCKER_IMAGE_NAME=${DOCKER_IMAGE}:16
build:
@echo 'Starting docker build'

View File

@@ -1,18 +1,19 @@
# CUBETIQ Alpine OS Linux with Nodejs 14
# CUBETIQ Alpine OS Linux with Nodejs 16
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/calpine-node)
![Docker Pulls](https://img.shields.io/docker/pulls/cubetiq/calpine-node)
- CUBETIQ Alpine OS Linux (3.13.3)
- Nodejs 14 (14.16.0)
- Nodejs 16 (16.13.1)
- Yarn 1.22.17
# [Docker Hub](https://hub.docker.com/r/cubetiq/calpine-node)
```shell
docker push cubetiq/calpine-node:14
docker push cubetiq/calpine-node:latest
```
# Usage
```shell
docker run --rm -it cubetiq/calpine-node:14 /bin/sh
docker run --rm -it cubetiq/calpine-node:latest /bin/sh
```
# Example