Skip to content

Commit

Permalink
Merge branch 'feature/add-readme-file' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-dlc committed Dec 4, 2020
2 parents 7abd21e + 44a97d1 commit 8ee42d9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:3.11

ARG TZ=America/Cancun

ENV VERSION=v12.19.1 NPM_VERSION=6 YARN_VERSION=latest
ENV VERSION=v12.20.0 NPM_VERSION=6 YARN_VERSION=latest

RUN apk upgrade --no-cache -U && \
apk add --no-cache tzdata curl make gcc g++ python linux-headers binutils-gold gnupg libstdc++
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ node {

stage('Generate Version Tags') {
MAJOR_VERSION = '12'
MINOR_VERSION = '12.19'
PATCH_VERSION = '12.19.1'
MINOR_VERSION = '12.20'
PATCH_VERSION = '12.20.0'
}

stage('Build Image From Dockerfile') {
Expand Down
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[![Build Status](https://jenkins.ricardodlc.com/buildStatus/icon?style=flat-square&job=NodeJs+Image)](https://jenkins.ricardodlc.com/job/NodeJs%20Image/)

Minimal NodeJS Docker Image
===========================

A minimal NodeJS image with Time Zone configurable.

---

This image is build on [Alpine Linux](https://hub.docker.com/_/alpine) 3.11 image. It comes with the necessary stuff to run/develop NodeJS applications and no unnecessary programs. It comes with bundled:

- NodeJS (See the current builded version, or check [Docker Hub](https://hub.docker.com/repository/docker/ricardodlc/minimal-nodejs-image) for other versions)
- NPM
- Yarn

## Build Your Own Image

The build process is very simple, just execute the following command:

```console
$ docker build -t image-name . --squash
```

> **Note:** the `--squash` argument its available only in **API 1.25+**. It squash newly built layers into a single new layer. This helps to reduce the final image size. See the [documentation](https://docs.docker.com/engine/reference/commandline/image_build/) for more info.
### Configure A Time Zone

Since this image comes with `America/Cancun` time zone by default, you can customize by your prefered time zone by using the `TZ` argument like this:

```console
$ docker build -t image-name --build-arg TZ=America/Cancun . --squash
```

Just replace the `TZ` value with your desired time zone.

0 comments on commit 8ee42d9

Please sign in to comment.