feat: adds Node.js 16 flavor

This commit is contained in:
Tim Brust 2021-08-10 12:04:14 +02:00
parent 96d0fa1164
commit 3d80a00446
No known key found for this signature in database
GPG Key ID: 94EA4986FA50F11B
5 changed files with 22 additions and 7 deletions

View File

@ -19,6 +19,10 @@ jobs:
- path: 14
tags: "14 fermium latest"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6
- path: 16
tags: "16 gallium"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7,linux/arm/v6
steps:
- name: Checkout
uses: actions/checkout@v2.3.4

View File

@ -9,5 +9,6 @@ jobs:
- uses: actions/checkout@v2.3.4
- name: Build the Docker image
run: |
docker run -i $(docker build -q 12) /bin/sh -c "node --version && git --version"
docker run -i $(docker build -q 14) /bin/sh -c "node --version && git --version"
docker run -i $(docker build -q 12) /bin/sh -c "node --version && npm --version && git --version"
docker run -i $(docker build -q 14) /bin/sh -c "node --version && npm --version && git --version"
docker run -i $(docker build -q 16) /bin/sh -c "node --version && npm --version && git --version"

View File

@ -8,4 +8,4 @@ jobs:
steps:
- uses: actions/checkout@v2.3.4
- run: brew install hadolint
- run: hadolint {12,14}/Dockerfile
- run: hadolint {12,14,16}/Dockerfile

10
16/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM node:16-alpine3.14
LABEL maintainer "Tim Brust <github@timbrust.de>"
ARG REFRESHED_AT
ENV REFRESHED_AT $REFRESHED_AT
RUN apk -U upgrade \
&& apk add --no-cache \
git \
openssh

View File

@ -4,12 +4,12 @@
[![buildx Status](https://github.com/timbru31/docker-node-alpine-git/workflows/buildx/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3Abuildx)
[![Lint Dockerfiles](https://github.com/timbru31/docker-node-alpine-git/workflows/Lint%20Dockerfiles/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3A%22Lint+Dockerfiles%22)
A minimal Dockerfile based on Node.js 12 LTS (Erbium) or Node.js 14 LTS (Fermium) alpine with Git and ssh installed.
A minimal Dockerfile based on Node.js 12 LTS (Erbium), Node.js 14 LTS (Fermium) or Node.js 16 (Gallium) alpine with Git and ssh installed.
## What's included
- Node.js Node.js 12 LTS or Node.js 14 LTS
- npm 6
- Node.js Node.js 12 LTS, Node.js 14 LTS or Node.js 16
- npm 6 (< Node.js 16) or npm 7 (Node.js 16)
- yarn
- Git
- ssh
@ -23,7 +23,7 @@ These Dockerfiles leverage the new `buildx` functionality and offer the followin
- linux/arm/v7
- linux/arm/v6
- linux/ppc64le
- linux/s390x
- linux/s390x (not for Node.js 16 [upstream bug])
---