Skip to content

Commit

Permalink
Created v6.0.0 of alpine-nodejs.
Browse files Browse the repository at this point in the history
  • Loading branch information
smebberson committed Jul 29, 2016
1 parent da444bc commit c873e62
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ Each release records it's own specific changes in a VERSIONS.md file.

- `alpine-nginx-nodejs`: upgraded Node.js to v6.2.1.
- `alpine-nginx-nodejs`: upgraded Node.js to v6.2.2.
- `alpine-nodejs`: upgraded Node.js to v6.3.0. Node.js is now compiled without the `--fully-static` flag allowing dynamic loading.
- `alpine-nodejs`: Add `apk upgrade --update` to the Dockerfile so that APK packages are now updated when the image is built.

### Releases

- [Released `v4.2.1` of `alpine-nginx-nodejs`](https://github.com/smebberson/docker-alpine/tree/alpine-nginx-nodejs-v4.2.1/alpine-nginx-nodejs)
- [Released `v4.2.2` of `alpine-nginx-nodejs`](https://github.com/smebberson/docker-alpine/tree/alpine-nginx-nodejs-v4.2.2/alpine-nginx-nodejs)
- [Released `v6.0.0` of `alpine-nodejs`](https://github.com/smebberson/docker-alpine/tree/alpine-nodejs-v6.0.0/alpine-nginx-nodejs)

## 2016.07.27

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ Latest version is `4.2.2`, or `latest`.

This includes Node.js.

Latest version is `5.2.2`, or `latest`.
Latest version is `6.0.0`, or `latest`.

- [README.md](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.2.2/alpine-nodejs/README.md)
- [VERSIONS.md](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.2.2/alpine-nodejs/VERSIONS.md)
- [README.md](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v6.0.0/alpine-nodejs/README.md)
- [VERSIONS.md](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v6.0.0/alpine-nodejs/VERSIONS.md)

### alpine-rabbitmq

Expand Down
9 changes: 5 additions & 4 deletions alpine-nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM smebberson/alpine-base:3.0.0
MAINTAINER Scott Mebberson <[email protected]>

ENV NODE_VERSION=v6.2.2 NPM_VERSION=3
ENV NODE_VERSION=v6.3.0 NPM_VERSION=3

RUN apk add --update git curl make gcc g++ python linux-headers libgcc libstdc++ binutils-gold && \
RUN apk upgrade --update && \
apk add --update git curl make gcc g++ python linux-headers libgcc libstdc++ && \
curl -sSL https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}.tar.gz | tar -xz && \
cd /node-${NODE_VERSION} && \
./configure --prefix=/usr --without-snapshot --fully-static && \
./configure --prefix=/usr --without-snapshot && \
make -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
make install && \
cd / && \
npm install -g npm@${NPM_VERSION} && \
apk del gcc g++ linux-headers libgcc libstdc++ binutils-gold && \
apk del gcc g++ linux-headers && \
rm -rf /etc/ssl /node-${NODE_VERSION} /usr/include \
/usr/share/man /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp \
/usr/lib/node_modules/npm/man /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html
1 change: 1 addition & 0 deletions alpine-nodejs/NODEJS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ You can [read more about how these images are versioned here](https://github.com

## 6.x Current branch of Node.js

- Node v6.3.0: [v6.0.0](VERSIONS.md#v600)
- Node v6.2.2: [v5.2.2](VERSIONS.md#v521)
- Node v6.2.1: [v5.2.1](VERSIONS.md#v521)
- Node v6.2.0: [v5.2.0](VERSIONS.md#v520)
Expand Down
3 changes: 2 additions & 1 deletion alpine-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ This image features:

## Versions

- `5.2.2`, `latest` [(Dockerfile)](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.2.2/alpine-nodejs/Dockerfile)
- `6.0.0`, `latest` [(Dockerfile)](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v6.0.0/alpine-nodejs/Dockerfile)
- `5.2.2` [(Dockerfile)](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.2.2/alpine-nodejs/Dockerfile)
- `5.2.1` [(Dockerfile)](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.2.1/alpine-nodejs/Dockerfile)
- `5.2.0` [(Dockerfile)](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.2.0/alpine-nodejs/Dockerfile)
- `5.1.0` [(Dockerfile)](https://github.com/smebberson/docker-alpine/blob/alpine-nodejs-v5.1.0/alpine-nodejs/Dockerfile)
Expand Down
18 changes: 17 additions & 1 deletion alpine-nodejs/VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,26 @@ This file contains all software versions, that correspond to a version of this i

## Latest

Same as v5.2.2.
Same as v6.0.0.

Usage: `smebberson/alpine-nodejs` or `smebberson/alpine-nodejs:latest`.

## v6.0.0

- [smebberson/alpine-base: v3.0.0][smebbersonalpinebase300]
- [Node.js: v6.3.0][nodejs]
- [npm: v3.10.5][npm]

__*Changes*__:

- All APK packages are now updated when the image is built.

__*Breaking changes*__:

- Node.js is no longer built with the `--fully-static` flag.

Usage: `smebberson/alpine-nodejs:6.0.0`.

## v5.2.2

- [smebberson/alpine-base: v3.0.0][smebbersonalpinebase300]
Expand Down
6 changes: 5 additions & 1 deletion examples/user-nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM smebberson/alpine-nodejs
MAINTAINER Scott Mebberson <[email protected]>

# Add the files
# Build the npm modules.
ADD root/app/package.json /app/package.json
RUN cd /app && npm install --production

# Add the remaining source (excluding `root/app/node_modules` thanks to `.dockerignore`).
ADD root /

CMD ["/app/start"]
1 change: 1 addition & 0 deletions examples/user-nodejs/root/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
root/app/node_modules
9 changes: 9 additions & 0 deletions examples/user-nodejs/root/app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "user-nodejs",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "4.14.0",
"mongoose": "4.5.7"
}
}
1 change: 1 addition & 0 deletions examples/user-nodejs/root/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ var util = require('util');

console.log('works');
console.log(util.inspect(process.env));
console.log(util.inspect(process.versions));

0 comments on commit c873e62

Please sign in to comment.