Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker Base Images

(version 0.0.1)

This repository contain the following base images with all statics dependencies.

  • Node: 0.10.38
  • Node: 0.12.4

Deleting native dependencies

If you had native dependencies you can remove build tools running:

 RUN apk del make gcc g++ python && \ 
 rm -rf /tmp/* /root/.npm /root/.node-gyp

Example

docker run taqtile/alpine-node-native:0.12.4 node --version 

Example Dockerfile for your own Node.js project

FROM taqtile/alpine-node-native:0.12.4
# FROM taqtile/alpine-node-native:0.10.38

WORKDIR /src
ADD . .

RUN echo -e "machine github.com\n  login CI_USER_TOKEN" >> ~/.netrc

RUN npm install

# If you had native dependencies you can now remove build tools
RUN apk del make gcc g++ python && \-->
rm -rf /tmp/* /root/.npm /root/.node-gyp

EXPOSE 3000
CMD ["node", "index.js"]

Links

Docker Pull Command
Owner
taqtile
Source Repository

Comments (0)