Public | Automated Build

Last pushed: 2 years ago
Short Description
Base Dockerfile for NPM modules.
Full Description

alpine-node

Base Dockerfile for NPM modules.

Usage

Available on Docker Hub as pavlov/alpine-node.

FROM pavlov/alpine-node:latest
MAINTAINER Laika <laika@pavlovml.com>

# deps
RUN apk --update add gcc g++ python

# install
RUN mkdir -p /opt/app
WORKDIR /opt/app
COPY . ./
RUN npm install

# clean up
RUN apk del gcc g++ python && \
    rm -rf /tmp/* /var/cache/apk/* /root/.npm /root/.npmrc /root/.node-gyp

# run
EXPOSE 80
CMD [ "npm", "start" ]

Development

$ make

License

BSD 3-Clause

Docker Pull Command
Owner
pavlov
Source Repository