-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da444bc
commit c873e62
Showing
10 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
root/app/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters